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

Constants

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>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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