DataRouteSpec<A> class
final
A route whose arguments are represented by A, commonly a Dart record.
Constructors
- DataRouteSpec(String path, {required A decoder(RouteData data), required RouteEncoding encoder(A arguments)})
Properties
- decoder → A Function(RouteData data)
-
final
- encoder → RouteEncoding Function(A arguments)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
RouteData data) → A -
override
-
location(
A arguments) → RouteLocation -
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