ExtensionOverrideValue class

ghissues53 (GitHub #14): the value of an explicit extension override - E(x), E<T>(x), prefix.E(x). Not a first-class value in Dart: it is only the target of the access that follows, which calls the member of extension with receiver as this - never the receiver's own member nor another extension's (the way to resolve a conflict between two extensions, or to name the extension of a prefixed import).

Constructors

ExtensionOverrideValue(InterpretedExtension extension, Object? receiver, SExpression receiverExpression, List<RuntimeType>? typeArguments)

Properties

extension → InterpretedExtension
The extension named by the override.
final
extensionName → String
The extension's name, for messages.
no setter
hashCode → int
The hash code for this object.
no setterinherited
receiver → Object?
The value the override applies the extension to (x of E(x)).
final
receiverExpression → SExpression
The expression receiver came from; its written type binds the extension's type parameters when no typeArguments are given.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeArguments → List<RuntimeType>?
The explicit type arguments of E<T>(x), else null.
final

Methods

member(String name) → ExtensionMemberCallable
The member name the extension declares; an error naming the extension when it declares none.
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