LocaleCodec class
LocaleCodec
~Preset Codec for Locale. See PresetCodec.
encode(Locale obj) {
final type1 = qLocale.encode(obj);
final type2 = LocaleCodec().encode(obj);
}
- Inheritance
-
- Object
- PresetCodec<
Locale> - LocaleCodec
Constructors
- LocaleCodec()
-
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
Methods
-
decode(
Map< String, dynamic> ? data) → Locale? -
Revert an encoded map of String to json encodable
objects to an instance of
T
. Return null ifdata
is null or conversion fails.override -
encode(
Locale? obj) → Map< String, dynamic> -
Convert
obj
of typeT
to a map of String to json encodable objects. Can only be called once for each object in data heap.override -
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