InstanceMirror class

An InstanceMirror reflects an instance of a Dart language object.

An InstanceMirror reflects an instance of a Dart language object.

Implements:
Implementors

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 Inherited ( Symbol fieldName, Object value ) → InstanceMirror
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 Inherited ( Symbol fieldName ) → InstanceMirror
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 Inherited ( Symbol memberName, List positionalArguments, [Map<Symbol> namedArguments] ) → InstanceMirror
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, oth...