Navigation mixin
Navigation is the core navigation interface and is used to controls the navigator 2.0
- Mixin Applications
Properties
- canPop → bool
-
Navigation.canPop is used to know when the page can be popped
no setter
- 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<
T> ([T? result]) → void - Navigation.pop is used to navigate back to the previous screen
-
popAndPush<
T, R> (String page, {T? result, Object? data}) → Future< R?> - Navigation.popAndPush is used to navigate back to the previous screen and navigate to another screen
-
popUntil(
bool predicate(PageSettings)) → void - Navigation.popUntil is used to navigate back until the condition returns true
-
push<
T> (String page, [Object? data]) → Future< T?> - Navigation.push is used to navigate to another screen maintaining the previous screen
-
pushAndReplaceUntil<
T> (String page, bool predicate(PageSettings), [Object? data]) → Future< T?> -
Navigation.pushAndReplaceUntil is used to navigate to another screen
and replaces the previous screens until the condition returns
true
-
pushReplacement<
T> (String page, [Object? data]) → Future< T?> - Navigation.pushReplacement is used to navigate to another screen replacing the previous screen
-
pushToUnknownPage(
[bool shouldResetPages = true]) → bool - Navigation.pushToUnknownPage is used to navigate to the unknown page
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited