BridgedEnum class
Represents an enum type defined in the host Dart environment and bridged into the interpreter. It holds the definition and provides access to its values.
- Implemented types
Constructors
-
BridgedEnum(String name, Map<
String, BridgedEnumValue> values) - Creates a definition for a bridged enum.
Properties
-
enumValues
→ List<
BridgedEnumValue> -
Returns the list of all values for this enum.
no setter
-
getters
↔ Map<
String, BridgedInstanceGetterAdapter> -
Instance getter adapters (shared by all values).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
methods
↔ Map<
String, BridgedMethodAdapter> -
Instance method adapters (shared by all values).
getter/setter pair
- name → String
-
The name of the enum.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
staticGetters
↔ Map<
String, Object? Function()> -
Static getter adapters for non-constant static members.
E.g.
WidgetState.anywhich returns aWidgetStatesConstraint.getter/setter pair -
values
→ Map<
String, BridgedEnumValue> -
A map of the enum's value names to their corresponding BridgedEnumValue instances.
final
Methods
-
getValue(
String valueName) → Object? -
Retrieves an enum value by its name, or handles built-in static
properties like
values. -
isSubtypeOf(
RuntimeType other, {Object? value}) → bool -
Checks if this type is a subtype of
other.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited