PathParams<P> class final

A bidirectional typed path-parameter contract.

Constructors

PathParams.codec({required P decode(PathInput input), required void encode(P value, PathOutput output)})
Creates an explicit runtime codec.
const
PathParams.schema()
Declares a codec that the file-route compiler must generate.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isSchema → bool
Whether this contract still requires file-route compilation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Map<String, List<String>> values) → P
Decodes raw values into P.
encode(P value) → Map<String, List<String>>
Encodes value into raw path segments.
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