Navigator1 class

Navigator 1.0 to use push, pushReplacement, pushAndRemoveUntil and all pop methods

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

canPop() bool
return true if we can do pop
maybePop<T>([T? result]) Future<bool>
Consults the current route's Route.willPop method, and acts accordingly, potentially popping the route as a result;
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop<T>([T? result]) → void
remove the current page or dialog from the stack until predicate
popUntil([bool predicate(Route)?]) → void
remove all pages in the stack until predicate
push<T>(Widget page, {Object? arguments, bool maintainState = true, bool fullscreenDialog = false, Transition? transition, Duration? transitionDuration, bool backGestureEnabled = false}) Future<T?>
Push the given page onto the navigator.
pushAndRemoveUntil<T>(Widget page, {bool predicate(Route)?, Object? arguments, bool backGestureEnabled = true, bool maintainState = true, bool fullscreenDialog = false, Transition? transition, Duration? transitionDuration}) Future<T?>
navigates to a new pages and remove until
pushReplacement<T extends Object?, TO extends Object?>(Widget page, {Object? arguments, bool maintainState = true, bool fullscreenDialog = false, Transition? transition, Duration transitionDuration = const Duration(milliseconds: 300), bool backGestureEnabled = false, TO? result}) Future<T?>
Replace the current page of the navigator by pushing the given page and then disposing the previous route once the new route has finished animating in.
toString() String
A string representation of this object.
inherited

Operators

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