RoutePopDisposition enum
Indicates whether the current route should be popped.
Used as the return value for Route.willPop.
See also:
- WillPopScope, a widget that hooks into the route's Route.willPop mechanism.
Values
- pop → const RoutePopDisposition
-
Pop the route.
If Route.willPop or Route.popDisposition return pop then the back button will actually pop the current route.
- doNotPop → const RoutePopDisposition
-
Do not pop the route.
If Route.willPop or Route.popDisposition return doNotPop then the back button will be ignored.
- bubble → const RoutePopDisposition
-
Delegate this to the next level of navigation.
If Route.willPop or Route.popDisposition return bubble then the back button will be handled by the SystemNavigator, which will usually close the application.
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<
RoutePopDisposition> - A constant List of the values in this enum, in order of their declaration.