RoutePopDisposition enum

Indicates whether the current route should be popped.

Used as the return value for Route.willPop.

See also:

Constants

bubble → const RoutePopDisposition

Delegate this to the next level of navigation.

If Route.willPop return bubble then the back button will be handled by the SystemNavigator, which will usually close the application.

const RoutePopDisposition(2)
doNotPop → const RoutePopDisposition

Do not pop the route.

If Route.willPop returns doNotPop then the back button will be ignored.

const RoutePopDisposition(1)
pop → const RoutePopDisposition

Pop the route.

If Route.willPop returns pop then the back button will actually pop the current route.

const RoutePopDisposition(0)
values → const List<RoutePopDisposition>

A constant List of the values in this enum, in order of their declaration.

const List<RoutePopDisposition>

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited