An enumerated value.
This class is implemented by all types and valuesintroduced using anenum declaration.Non-platform classes cannot extend or mix in this class.Concrete classes cannot implement the interface.
The identifier used to name anenum value is available as aString,via theEnumName.name extension property on theenum value.
- Available extensions
- Annotations
- @Since.new("2.14")
Properties
- hashCode→int
- The hash code for this object.no setterinherited
- index→int
- A numeric identifier for the enumerated value.no setter
- name→String
Available onEnum, provided by theEnumName extension
The name of the enum value.no setter- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
Methods
- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- toString(
)→String - A string representation of this object.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited
Static Methods
- compareByIndex<
T extendsEnum> (Tvalue1,Tvalue2)→int - Compares two enum values by theirindex.
- compareByName<
T extendsEnum> (Tvalue1,Tvalue2)→int - Compares enum values by name.