ConstEnumValue class
Represents an enum value constant.
Contains information about the enum type and the specific value, including its index within the enum declaration.
- Inheritance
-
- Object
- Constant
- ConstLiteral<
String> - ConstEnumValue
Constructors
- ConstEnumValue.new(String value, int index, InterfaceType type)
- Creates a new enum value constant.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- index → int
-
The index of this enum value within its enum declaration.
final
- isBool → bool
-
Whether this constant represents a boolean value.
no setterinherited
- isDouble → bool
-
Whether this constant represents a double value.
no setterinherited
- isEnumValue → bool
-
Whether this constant represents an enum value.
no setterinherited
- isFunctionReference → bool
-
Whether this constant represents a function reference.
no setterinherited
- isInt → bool
-
Whether this constant represents an integer value.
no setterinherited
- isInvalid → bool
-
Whether this constant represents an invalid constant.
no setterinherited
- isList → bool
-
Whether this constant represents a list.
no setterinherited
- isMap → bool
-
Whether this constant represents a map.
no setterinherited
- isNull → bool
-
Whether this constant represents null.
no setterinherited
- isNum → bool
-
Whether this constant represents a numeric value.
no setterinherited
- isObject → bool
-
Whether this constant represents an object.
no setterinherited
- isSet → bool
-
Whether this constant represents a set.
no setterinherited
- isString → bool
-
Whether this constant represents a string value.
no setterinherited
- isSymbol → bool
-
Whether this constant represents a symbol.
no setterinherited
- isType → bool
-
Whether this constant represents a type reference.
no setterinherited
- literalValue → Object
-
The literal Dart value represented by this constant.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → InterfaceType
-
The type of the enum that contains this value.
final
- value → String
-
The actual Dart value represented by this constant.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override