StackToConfigCodec<R extends KaiselRoute> class
Adapter so a KaiselStackCodec (stack-only URLs) works wherever a KaiselConfigCodec is required.
Useful for migrating apps that don't need nested URLs yet — wrap the existing stack codec instead of rewriting it.
- Implemented types
Constructors
-
StackToConfigCodec(KaiselStackCodec<
R> stackCodec) -
Wrap
stackCodec. The resulting config codec ignores KaiselConfig.nestedState entirely; nested state never round-trips through the URL.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stackCodec
→ KaiselStackCodec<
R> -
The wrapped stack-only codec.
final
Methods
-
decode(
Uri uri) → KaiselConfig< R> ? -
Decode a URL into a configuration, or return
nullif unrecognised (the parser will then use the fallback stack).override -
encode(
KaiselConfig< R> config) → Uri -
Encode a configuration into a URL.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited