See the stack of Flutter Navigator

Following steps:

  1. Set a breakpoint where you want to inspect, which must be inside a builder function which has context, and run in Debug mode
    enter image description here

  2. Run your app to the break point

  3. Open “Evaluate expression”
    enter image description here

  4. Evaluate Navigator.of(context)
    enter image description here

  5. Inspect the _historyenter image description here

In my example, you can see there are 2 routes in the history, with all relevant debuggable data.

Hope it helps

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)