NavStack class
In-SDK back history for tab-style navigation that doesn't go through
Flutter's Navigator.
Constructors
Properties
-
entries
→ List<
NavStackEntry> -
Read-only view of the current back stack (top of stack last).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Drop all history.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
peek(
) → NavStackEntry? -
The most-recent tab-swap entry WITHOUT removing it, or null when the
stack is empty. The back rung peeks, taps, and pops only once the tap
landed — a failed restore keeps the history intact so a retry targets
the same tab (Android
restorePreviousTab). -
pop(
) → NavStackEntry? - Pop the most-recent tab-swap entry, or null when the stack is empty.
-
recordTabSwap(
{required UiSnapshot snapshot, required UiNode tapTarget}) → NavStackEntry? -
Inspect
snapshotbefore a tap is about to fire ontapTarget. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited