BaseNavigator class

The base interface for navigation

Implementers

Constructors

BaseNavigator()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pop() → void
Removes the current route from the navigation stack
popUntil(String route) → void
Removes all routes in the navigation stack until the condition specified in predicate is satisfied
push(Route route, {Object arguments}) → void
Puts a route object on top of the navigation stack
pushNamed(String route, {Object arguments}) → void
Puts a route on top of the navigation stack
pushNamedAndRemoveAll(String route, {Object arguments}) → void
Adds a route into the navigation stack and removes everything else
pushNamedAndRemoveUntil(String route, {Object arguments, RoutePredicate predicate}) → void
Adds a route into the navigation stack and removes everything until the condition specified in predicate is satisfied
pushReplacementNamed(String route, {Object arguments}) → void
Replaces the current route with the specified route
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

getRouteName(BuildContext context) String
Retrieves the routeName of the current route in the navigation stack