values property

Set<T> values
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:
RestorableEnum<AxisDirection> axis = RestorableEnum<AxisDirection>(AxisDirection.up, values: AxisDirection.values);


Set<T> values;