ClosureMirror class abstract

A ClosureMirror reflects a closure.

A ClosureMirror provides the ability to execute its reflectee and introspect its function.

Implemented types

Constructors

ClosureMirror()

Properties

function → MethodMirror
A mirror on the function associated with this closure.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasReflectee → bool
Whether reflectee will return the instance reflected by this mirror.
no setterinherited
reflectee → Object?
If the InstanceMirror reflects an instance it is meaningful to have a local reference to, we provide access to the actual instance here.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → ClassMirror
A mirror on the type of the reflectee.
no setterinherited

Methods

apply(List positionalArguments, [Map<Symbol, dynamic>? namedArguments]) → Object?
Executes the closure and returns a mirror on the result.
delegate(Invocation invocation) → Object?
Performs invocation on reflectee.
inherited
invoke(String memberName, List positionalArguments, [Map<Symbol, dynamic>? namedArguments]) → Object?
Invokes the function or method memberName, and returns the result.
inherited
invokeGetter(String getterName) → Object?
Invokes a getter and returns the result. The getter can be the implicit getter for a field, or a user-defined getter method.
inherited
invokeSetter(String setterName, Object? value) → Object?
Invokes a setter and returns the result. The setter may be either the implicit setter for a non-final field, or a user-defined setter method. The name of the setter can include the final =; if it is not present, it will be added.
inherited
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