navigator property
NavigatorState
get
navigator
The state from the closest instance of this class that encloses the given context.
Typical usage is as follows:
context.navigator
..pop()
..pop()
..pushNamed('/settings');
The state from the furthest instance of instance of this class that encloses the given context.
Typical usage is as follows:
context.navigator.pop();
Consider using FluxNavigate if rootNavigator is needed.
Implementation
/// The state from the furthest instance of instance of this class that encloses the given
/// context.
///
/// Typical usage is as follows:
///
/// ```dart
/// context.navigator.pop();
/// ```
///
/// Consider using FluxNavigate if rootNavigator is needed.
NavigatorState get navigator {
return Navigator.of(this);
}