NavigationTools class
Managing navigation between pages with variant tools
Constructors
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
push(
Widget page, {dynamic callback(dynamic)?}) → dynamic -
Pushes the given
page
onto the navigation stack. -
pushToRoute(
String routeName, {dynamic callback(dynamic)?}) → dynamic -
Pushes a named route
routeName
onto the navigation stack. -
removeAllPreviousPages(
Widget page, {dynamic callback(dynamic)?}) → dynamic -
Navigates to a new
page
, removing all the previous pages from the navigation stack. -
removeAllPreviousPagesToRoute(
String routeName, {dynamic callback(dynamic)?}) → dynamic -
Navigates to a named route
routeName
, removing all previous routes from the navigation stack. -
replace(
Widget page, {dynamic callback(dynamic)?}) → dynamic -
Replaces the current route by pushing the given
page
and removing the previous one. -
replaceToRoute(
String routeName, {dynamic callback(dynamic)?}) → dynamic -
Replaces the current route with a new named route
routeName
.