TypedQueryParameter<T> constructor
const
TypedQueryParameter<T> ({
- String? name,
- QueryParameterEncoder<
T> ? encoder, - QueryParameterDecoder<
T> ? decoder, - bool compare(
- T,
- T
Annotation to override the URI name for a route parameter.
Implementation
const TypedQueryParameter({this.name, this.encoder, this.decoder, this.compare})
: assert(
(encoder == null) == (decoder == null),
'encoder and decoder must both be provided together',
),
assert(
compare == null || encoder != null,
'compare function requires an encoder to be provided',
);