SimpleEnumCodec<A> class

Mixed-in types

Constructors

SimpleEnumCodec.fromList(List<A?> list)
SimpleEnumCodec.sparse(Map<int, A> map)

Properties

hashCode int
The hash code for this object.
no setterinherited
map → BiMap<int, A>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Input input) → A
override
encode(A value) Uint8List
Convert self to an owned vector.
inherited
encodeTo(A value, Output output) → void
Convert self to a slice and append it to the destination.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sizeHint(A value) int
If possible give a hint of expected size of the encoding.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited