NavigatorContext extension
Contains extensions for easier access to Navigator and NavigatorState using BuildContext
- on
Properties
-
Available on BuildContext, provided by the NavigatorContext extension
Returns The state from the closest instance of this class that encloses the given context.no setter
Methods
-
pop<
T> ([T? result]) → void -
Available on BuildContext, provided by the NavigatorContext extension
Removes the top most Widget in the navigator's stack -
push<
T> (WidgetBuilder builder) → Future< T?> -
Available on BuildContext, provided by the NavigatorContext extension
Pushes the built widget to the screen using the material fade in animation