RouteArgumentsCodec class abstract
Converts application arguments to/from JSON-compatible history state.
Keep sensitive data out of URLs and browser history. Use opaque identifiers and retrieve protected data after authorization instead.
- Implementers
Constructors
- RouteArgumentsCodec()
-
const
- RouteArgumentsCodec.callbacks({required Object? encode(Object?), required Object? decode(Object?)})
-
Adapts callbacks to a codec. Encode must return JSON-compatible values;
callback errors propagate to the existing history/restoration handling.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Object? encoded) → Object? -
encode(
Object? arguments) → Object? -
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