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
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
void listener()) → void -
Register
listenerto 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