EnumPersistenceConverter<T extends Enum, I> class abstract

Converter between Enum and I

Inheritance

Constructors

EnumPersistenceConverter(List<T> values)
Constructor
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
values List<T>
Then enum values
final

Methods

fromStore(I value) → T
Convert the value read from the store
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toStore(T value) → I
Convert the value written to the store
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

integer<T extends Enum>(List<T> values) EnumPersistenceConverter<T, int>
An int EnumPersistenceConverter
string<T extends Enum>(List<T> values) EnumPersistenceConverter<T, String>
A string EnumPersistenceConverter