FieldCodec<T> class

Constructors

FieldCodec({required String toParam(T value), required T? toValue(String? param)})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toParam String Function(T value)
Encoder for converting value of type T to a query parameter.
final
toValue → T? Function(String? param)
Decoders for converting a query parameter to a value of type T.
final

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

Static Methods

decodeQueryGroup(String? group) Map<String, String>
Decodes a query group encoded value back to a Map.
encodeQueryGroup(Map<String, String> group) String
Encodes a query group into a JSON-like representation.
tryDecodeComponent(String component) String?
Decodes component using Uri.decodeComponent, but returns null if the decoding fails due to non-ASCII characters.