getValues abstract method

List<EnumFieldDeclaration> getValues()

Returns the list of enum value names declared in this enum.

Example

final values = enumType.getValues();
print(values); // ['small', 'medium', 'large']

Implementation

List<EnumFieldDeclaration> getValues();