navigator property
NavigatorState
navigator
Returns the navigator state from the closest widgets.Navigator ancestor.
context.navigator
is equivalent to widgets.Navigator.of.
Implementation
widgets.NavigatorState get navigator {
return widgets.Navigator.of(this);
}