EnumIndexConverter<T extends Enum> class
final
Typed Data
A ScalarConverter that encodes Enum values by their index.
- Implemented types
- Annotations
-
- @experimental
Constructors
-
EnumIndexConverter.new(List<
T> values) -
Creates a ScalarConverter that encodes Enum values by their index.
const
Properties
Methods
-
fromData(
Object value) → T -
Recreates an object from the given data representation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toData(
T value) → Object -
Returns the data representation of the object.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited