PopMode enum Null safety

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


History → const PopMode
const PopMode(0)
Page → const PopMode
const PopMode(1)
values → const List<PopMode>

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

const List<PopMode>


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


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


operator ==(Object other) bool
The equality operator. [...]