peek method

NavStackEntry? peek()

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).

Implementation

NavStackEntry? peek() => _entries.isEmpty ? null : _entries.last;