XNavigator class

Implemented types

Constructors

XNavigator(NavigatorState navigator)

Properties

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

Methods

canPop() bool
The initial route cannot be popped off the navigator, which implies that this function returns true only if popping the navigator would not remove the initial route.
override
maybePop<T extends Object>([T? result]) Future<bool>
Consults the current route's Route.willPop method, and acts accordingly, potentially popping the route as a result; returns whether the pop request should be considered handled.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop<T extends Object>([T? result]) → void
Removes the current Route from the stack of routes.
override
popAndPushNamed<T extends Object, TO extends Object>(String routeName, {TO? result, Object? arguments}) Future<T?>
Pop the current route off the navigator and navigate to a route.
override
popUntil(bool predicate(Route)) → void
Calls pop repeatedly on the navigator that most tightly encloses the given context until the predicate returns true.
override
push<T extends Object>(Route<T> route) Future<T?>
Navigate to a new screen.
override
pushNamed<T extends Object>(String routeName, {Object? arguments}) Future<T?>
Navigate to a route.
override
pushNamedAndRemoveUntil<T extends Object>(String newRouteName, bool predicate(Route), {Object? arguments}) Future<T?>
Push the route with the given name onto the navigator that most tightly encloses the given context, and then remove all the previous routes until the predicate returns true.
override
pushReplacement<T extends Object, TO extends Object>(Route<T> newRoute, {TO? result}) Future<T?>
Replace the current route of the navigator that most tightly encloses the given context by pushing the given route and then disposing the previous route once the new route has finished animating in.
override
pushReplacementNamed<T extends Object, TO extends Object>(String routeName, {TO? result, Object? arguments}) Future<T?>
Replace the current route of the navigator that most tightly encloses the given context by pushing the route named routeName and then disposing the previous route once the new route has finished animating in.
override
routeNamed<T>(String name, {dynamic args}) Route<T?>
override
showDialog({WidgetBuilder? builder, bool barrierDismissible = true}) Future
override
toString() String
A string representation of this object.
inherited

Operators

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