ClosureMirror class Null safety

A ClosureMirror reflects a closure.

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

Implemented types




function MethodMirror
A mirror on the function associated with this closure. [...]
hashCode int
The hash code for this object. [...]
read-only, inherited
hasReflectee bool
Whether reflectee will return the instance reflected by this mirror. [...]
read-only, inherited
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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type ClassMirror
A mirror on the type of the reflectee. [...]
read-only, inherited


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. [...]
invoke(String memberName, List positionalArguments, [Map<Symbol, dynamic>? namedArguments]) Object?
Invokes the function or method memberName, and returns the result. [...]
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. [...]
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. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]