InterpretedExtension class

Constructors

InterpretedExtension({String? name, required RuntimeType? onType, bool isOnNullableType = false, required Map<String, Callable> members, Map<String, Callable>? setters, Map<String, Callable>? staticMethods, Map<String, Callable>? staticGetters, Map<String, Callable>? staticSetters, Map<String, Object?>? staticFields})

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasOnType → bool
Whether onType is resolved. An extension declared in a library that is still loading, on a type not declared yet (an import cycle, or a barrel that has not reached the export), is registered at once - importers copy it with the module's exports - and gets its type from resolveOnType once the outermost load returns (GitHub #9). Until then no lookup applies it.
no setter
isOnNullableType → bool
final
members → Map<String, Callable>
final
name → String?
final
onType → RuntimeType
The type the extension applies to; see hasOnType.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setters → Map<String, Callable>
ghissues56: the instance setters, apart from members, so a getter and a setter of one name (int get w / set w(int v)) are both kept - in one map the second replaced the first.
final
staticFields → Map<String, Object?>
final
staticGetters → Map<String, Callable>
final
staticMethods → Map<String, Callable>
final
staticSetters → Map<String, Callable>
final

Methods

findMember(String name) → Callable?
findSetter(String name) → Callable?
ghissues56: the instance setter name - from setters, or a setter a caller put into members (the single map of earlier versions).
findStaticGetter(String name) → Callable?
findStaticMethod(String name) → Callable?
findStaticSetter(String name) → Callable?
getStaticField(String name) → Object?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveOnType(RuntimeType type) → void
Sets onType, on the extension and on its instance members.
setStaticField(String name, Object? value) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited