dart:core
Enum class
An enumerated value.
This class is implemented by all types and values introduced using an enum declaration. Non-platform classes cannot implement, extend or mix in this class.
- Available Extensions
- Annotations
-
Constructors
- Enum()
Properties
- hashCode → int
read-only, inherited
- The hash code for this object.
- index → int
read-only
- A numeric identifier for the enumerated value.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed.
- toString() → String
inherited
- A string representation of this object.
Operators
- operator ==(Object other) → bool
inherited
- The equality operator.
Static Methods
- compareByIndex<T extends Enum>(T value1, T value2) → int
@Since("2.15")
- Compares two enum values by their index.
- compareByName<T extends Enum>(T value1, T value2) → int
@Since("2.15")
- Compares enum values by name.