depth property
The depth of the current value.
Depth should be updated when value is updated.
When pushing a new value to the history stack, the new value will be pushed as a replacement to all entries of equal or greater depth. If ImplicitNavigator is rebuilt with a new depth and unchanged value, a page will still be pushed to the stack.
Values with a depth of null are always appended to the end of the stack, including after any other values of null depth.
Implementation
final int? depth;