OptionalEnumCodec<T extends Enum> class final

An enum value that may be absent (Flutter's nullable enum parameters).

Inheritance

Constructors

OptionalEnumCodec(List<T> values)
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
type → PropType
What the values are (for panels, docs, codegen).
no setteroverride
values → List<T>
final

Methods

decode(Object? json) → T?
override
encode(T? value) → Object?
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