InstanceMirror class abstract

An InstanceMirror reflects an instance of a Dart language object.

Implemented types
Implementers

Constructors

InstanceMirror()

Properties

hashCode int
Override requested by linter.
no setteroverride
hasReflectee bool
Whether reflectee will return the instance reflected by this mirror.
no setter
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 setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ClassMirror
A mirror on the type of the reflectee.
no setter

Methods

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.
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
Whether this mirror is equal to other.
override