BaseNavigator class abstract

The base interface for navigation

Implementers

Constructors

BaseNavigator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop() → void
Removes the current route from the navigation stack
popUntil(bool predicate(Route)) → void
Removes all routes in the navigation stack until the condition specified in predicate is satisfied
push(Route route) → 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