InstanceMirror class

An InstanceMirror reflects an instance of a Dart language object.

An InstanceMirror reflects an instance of a Dart language object.

Implements
Implemented by

Constructors

InstanceMirror()

Instance Properties

type ClassMirror
read-only
hasReflectee bool
read-only
reflectee dynamic
read-only

Instance Methods

delegate(Invocation invocation) → dynamic
Perform invocation on reflectee. Equivalent to
setField(Symbol fieldName, Object value) → InstanceMirror Inherited
Invokes a setter and returns a mirror on the result. The setter may be either the implicit setter for a non-final field or a user-defined setter method.
getField(Symbol fieldName) → InstanceMirror Inherited
Invokes a getter and returns a mirror on the result. The getter can be the implicit getter for a field or a user-defined getter method.
invoke(Symbol memberName, List positionalArguments, [Map<Symbol> namedArguments]) → InstanceMirror Inherited
Invokes the named function and returns a mirror on the result.

Operators

operator ==(other) → bool
Returns true if this mirror is equal to other. The equality holds if and only if (1) other is a mirror of the same kind and (2) either (a) hasReflectee is true and so is identical(reflectee, other.reflectee) or (b) the remote objects reflected by this mirror and by other are identical.