index property Null safety
A numeric identifier for the enumerated value.
The values of a single enumeration are numbered
consecutively from zero to one less than the
number of values.
This is also the index of the value in the
enumerated type's static
int get index;