BridgedEnumValue class

Represents a specific value of a BridgedEnum. It holds the value's name, index, and the original native enum value.

Implemented types

Constructors

BridgedEnumValue(BridgedEnum enumType, String name, int index, Object nativeValue, {Map<String, BridgedInstanceGetterAdapter>? getters, Map<String, BridgedMethodAdapter>? methods})

Properties

enumType BridgedEnum
The BridgedEnum definition this value belongs to.
final
hashCode int
The hash code for this object.
no setteroverride
index int
The index of the enum value in its definition order.
final
name String
The name of the enum value (e.g., 'red' for Color.red).
final
nativeValue Object
The original native Dart enum value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valueType RuntimeType
The runtime type of this value.
no setteroverride

Methods

get(String identifier) Object?
Accesses a property or method of this value.
override
invoke(InterpreterVisitor visitor, String method, List<Object?> args, Map<String, Object?> namedArgs) Object?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String identifier, Object? value) → void
Sets a property of this value.
override
toString() String
A string representation of this object.
override

Operators

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