KaiselRootSnapshot class

One root's navigation state: its main stack plus any shells, modules, active flows, the last guard run, and the encoded URL.

Constructors

KaiselRootSnapshot({required String id, required KaiselStackSnapshot main, List<KaiselShellSnapshot> branches = const <KaiselShellSnapshot>[], List<KaiselModuleSnapshot> modules = const <KaiselModuleSnapshot>[], List<KaiselFlowSnapshot> flows = const <KaiselFlowSnapshot>[], List<KaiselProblemSnapshot> problems = const <KaiselProblemSnapshot>[], KaiselGuardTraceSnapshot? guardTrace, String? url, List<String> history = const <String>[], List<KaiselOriginFrame> origin = const <KaiselOriginFrame>[]})
Create a root snapshot.
const

Properties

branches List<KaiselShellSnapshot>
Branched shells registered with this root.
final
flows List<KaiselFlowSnapshot>
Active modal flows, outermost first.
final
guardTrace KaiselGuardTraceSnapshot?
The most recent guard-pipeline run, or null if none retained.
final
hashCode int
The hash code for this object.
no setterinherited
history List<String>
The main router's past stacks (oldest first), each as a "A → B" label, for DevTools time-travel. Empty in release.
final
id String
Stable id distinguishing this root from others (multi-delegate apps).
final
main KaiselStackSnapshot
The main router's stack.
final
modules List<KaiselModuleSnapshot>
Module mounts registered with this root.
final
origin List<KaiselOriginFrame>
App-code call frames behind the most recent transition (closest first), for the Transitions log — "who navigated". Empty in release, or when the change had no app call site (e.g. a system-back pop).
final
problems List<KaiselProblemSnapshot>
Detected problems (e.g. no-op mutations), across this root's routers.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
The URL the current configuration encodes to, or null when no codec.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Serialise to the wire format.
toString() String
A string representation of this object.
inherited

Operators

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