ElectricEnumCodec<T extends Enum> class
Constructors
-
ElectricEnumCodec({required Map<
T, String> dartEnumToPgEnum, required List<T> values})
Properties
-
dartEnumToPgEnum
→ Map<
T, String> -
final
-
decoder
→ Converter<
String, T> -
Returns the decoder of
this
, converting fromT
toS
.no setteroverride -
encoder
→ Converter<
T, String> -
Returns the encoder from
S
toT
.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
String, T> -
Inverts
this
.no setterinherited -
pgEnumToDartEnum
→ Map<
String, T> -
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ List<
T> -
final
Methods
-
decode(
String encoded) → T -
Decodes
encoded
data.inherited -
encode(
T input) → String -
Encodes
input
.inherited -
fuse<
R> (Codec< String, R> other) → Codec<T, R> -
Fuses
this
withother
.inherited -
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