DuplicateRouteBehavior enum

Defines behavior when navigating to a route already in the stack.

Inheritance
Available extensions

Values

duplicate → const DuplicateRouteBehavior

Push a new instance of the route onto the stack.

refresh → const DuplicateRouteBehavior

Replace the current route with updated parameters instead of pushing a new instance.

doNothing → const DuplicateRouteBehavior

Cancel the navigation entirely.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
isDoNothing → bool
Returns true when this behavior cancels navigation.
no setter
isDoNothing → bool

Available on DuplicateRouteBehavior?, provided by the DuplicateRouteBehaviorEx extension

Returns true when the optional behavior cancels navigation.
no setter
isDuplicate → bool
Returns true when this behavior pushes a new instance.
no setter
isDuplicate → bool

Available on DuplicateRouteBehavior?, provided by the DuplicateRouteBehaviorEx extension

Returns true when the optional behavior duplicates the route.
no setter
isRefresh → bool
Returns true when this behavior replaces the existing route.
no setter
isRefresh → bool

Available on DuplicateRouteBehavior?, provided by the DuplicateRouteBehaviorEx extension

Returns true when the optional behavior refreshes the route.
no setter
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<DuplicateRouteBehavior>
A constant List of the values in this enum, in order of their declaration.