StandardPageNavigationMode enum
Specifies how pages created with StandardPageFactory should be navigated
Values
- moveToTop → const StandardPageNavigationMode
-
Similar to Navigator.push used in Flutter's Navigator, it adds the page to the top of the history. However, if there is already a page with the same page key in the history, it moves that page to the top without removing other pages with the same page key from the history
- removeAbove → const StandardPageNavigationMode
-
If the same page exists within the history, all history from that page and up will be removed. Then the page will be added to the top of the history. If the same page does not exist within the history, it behaves the same as moveToTop.
- removeAll → const StandardPageNavigationMode
-
After removing all pages from the history, add the page.
- replace → const StandardPageNavigationMode
-
Remove the current page from the history and replace it with the page being navigated to.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
StandardPageNavigationMode> - A constant List of the values in this enum, in order of their declaration.