KaiselNestedHandle class abstract

Non-generic handle a nested router (branched shell or module mount) exposes to the surrounding KaiselRouterDelegate so the URL can describe the nested router's state.

Implemented types

Constructors

KaiselNestedHandle()

Properties

configType → Type
The runtime type of KaiselNestedConfig this handle produces and accepts. Used by the host to match a decoded URL configuration to the right registered handle.
no setter
hashCode → int
The hash code for this object.
no setterinherited
replacesHistoryEntry → bool
Whether the nested router's most recent committed change should overwrite the browser history entry rather than add one — the nested counterpart of KaiselNavigator.replacesHistoryEntry, read by the host when the nested state drives the URL. Defaults to false (a push / branch switch adds an entry).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(void listener()) → void
Register listener to be called on every change notification.
inherited
captureConfig() → KaiselNestedConfig
Capture the handle's current state for inclusion in the URL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(void listener()) → void
Remove a previously registered listener. Idempotent.
inherited
restoreFromConfig(KaiselNestedConfig config) → Future<void>
Apply a captured config. Implementations should silently ignore configs whose runtime type doesn't match configType — the host filters before calling, but a defensive check costs nothing.
toString() → String
A string representation of this object.
inherited

Operators

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