KaiselModuleConfig class

Configuration for a mounted RouteModule.

A module is a self-contained routing unit — its own sealed subtype, its own initial stack, its own page builder. Unlike a shell (which aggregates multiple parallel branches), a module is a single nested router rendered as a normal page.

KaiselModuleConfig captures the module's internal stack so a URL like /checkout/confirm can be encoded as mainStack: [CheckoutMount] plus nestedState: KaiselModuleConfig( stack: [Cart, Shipping, Confirm]) and round-trip on deep link.

Inheritance
Annotations
  • @immutable

Constructors

KaiselModuleConfig({required List<KaiselRoute> stack})
Create a module configuration.

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack List<KaiselRoute>
The module's internal stack. Type-erased to KaiselRoute; the concrete RouteModule knows the real subtype.
final

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