BridgedEnumDefinition<T extends Enum> class

Constructors

BridgedEnumDefinition({required String name, required List<T> values, Map<String, BridgedInstanceGetterAdapter> getters = const {}, Map<String, BridgedMethodAdapter> methods = const {}, Map<String, Object? Function()> staticGetters = const {}, Map<String, BridgedStaticMethodAdapter> staticMethods = const {}})

Properties

getters → Map<String, BridgedInstanceGetterAdapter>
Adapters for instance getters on enum values. The key is the getter name.
final
hashCode → int
The hash code for this object.
no setterinherited
methods → Map<String, BridgedMethodAdapter>
Adapters for instance methods on enum values. The key is the method name.
final
name → String
The name under which the enum will be known in the interpreter.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staticGetters → Map<String, Object? Function()>
Adapters for static getters on the enum type itself. These are non-constant static members like WidgetState.any.
final
staticMethods → Map<String, BridgedStaticMethodAdapter>
Adapters for static methods on the enum type itself. These are static factory/helper methods like PageFormat.fromString(name), invoked as EnumType.staticMethod(args) from interpreted code.
final
values → List<T>
The list of native enum values (e.g. MyEnum.values).
final

Methods

buildBridgedEnum() → BridgedEnum
Builds the BridgedEnum object from this definition.
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.
inherited