EnumType<T extends Enum> class

Represents an enumeration type.

The EnumType class extends the GenericType class and provides additional functionality for working with enumeration values.

Constructors

EnumType(List<T> values)
Creates a new instance of the EnumType class with the specified values.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the generic type.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<T>
The list of values of the enumeration type.
final

Methods

createList() List<T>
Creates an empty list of type T.
inherited
createListOfMapOfT() List<Map<String, T>>
Creates an empty list of maps with keys of type String and values of type T.
inherited
createMapOfListOfNullableT() Map<String, List<T>?>
Creates an empty map with keys of type String and nullable values of type List of T.
inherited
createMapOfListOfT() Map<String, List<T>>
Creates an empty map with keys of type String and values of type List of T.
inherited
createMapOfNullableT() Map<String, T?>
Creates an empty map with keys of type String and nullable values of type T.
inherited
createMapOfT() Map<String, T>
Creates an empty map with keys of type String and values of type T.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String value) → T
Parses the given value and returns the corresponding enumeration value.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited