nav property

NavigatorState get nav

Returns the navigator state from the closest widgets.Navigator ancestor.

context.navigator is equivalent to widgets.Navigator.of.

Implementation

widgets.NavigatorState get nav {
  return widgets.Navigator.of(this);
}