values property
getter/setter pair
The set of values that this RestorableEnum may represent.
This is a required field that supplies the possible enum values that can be serialized and restored.
If a value is encountered that is not in this set, fromPrimitives will assert when restoring.
It is typically set to the values
list of the enum type.
For example, to create a RestorableEnum with an
AxisDirection enum value, with a default value of AxisDirection.up,
you would build it like the code below:
link
RestorableEnum<AxisDirection> axis = RestorableEnum<AxisDirection>(AxisDirection.up, values: AxisDirection.values);
Implementation
Set<T> values;