TypedQueryParameter<T> class
Annotation to override the URI name for a route parameter.
- Annotations
-
- @optionalTypeArgs
- @Target.new({TargetKind.parameter})
Constructors
-
TypedQueryParameter({String? name, QueryParameterEncoder<
T> ? encoder, QueryParameterDecoder<T> ? decoder, bool compare(T, T)?}) -
Annotation to override the URI name for a route parameter.
const
Properties
- compare → bool Function(T, T)?
-
A function that determines if two parameter values differ.
final
-
decoder
→ QueryParameterDecoder<
T> ? -
A function that converts a string from the URI to a parameter value.
final
-
encoder
→ QueryParameterEncoder<
T> ? -
A function that converts a parameter value to a string for use in the URI.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The name of the parameter in the URI.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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