PopMode enum

Enables the user to customize the intended pop behavior

Goes to either the previous history entry or the previous page entry

e.g. if the user navigates to these pages

  1. /home
  2. /home/products/1234

when popping on History mode, it will emulate a browser back button.

so the new history stack will be:

  1. /home

when popping on Page mode, it will only remove the last part of the route so the new history stack will be:

  1. /home
  2. /home/products

another pop will change the history stack to:

  1. /home
Inheritance
Available extensions

Values

History → const PopMode
Page → const PopMode

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PopMode>
A constant List of the values in this enum, in order of their declaration.