KaiselStackEntry<R extends KaiselRoute> class

Identity-stable wrapper for a route on the stack.

Two value-equal routes (e.g. const Home() pushed twice) still need distinct identities for the Navigator to diff them correctly across rebuilds. The router assigns a monotonic id per entry; the delegate uses it to key the corresponding Page. Identity is preserved across navigations where the route at a given position is unchanged, so push/pop/replaceTop don't tear down sibling pages.

Annotations
  • @immutable

Constructors

KaiselStackEntry(R route)
Wrap route, assigning it a process-unique identity id.

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
Identity-stable id used by the delegate to key the corresponding page.
final
route → R
The user-facing route.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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