An InstanceMirror reflects an instance of a Dart language object.
- Implements
- Implemented by
Properties
- hasReflectee → bool
-
read-only
Does
reflectee
contain the instance reflected by this mirror? This will always be true in the local case (reflecting instances in the same isolate), but only true in the remote case if this mirror reflects a simple value.… - reflectee → dynamic
-
read-only
If the
InstanceMirror
reflects an instance it is meaningful to have a local reference to, we provide access to the actual instance here.… - type → ClassMirror
-
read-only
A mirror on the type of the reflectee.…
Constructors
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 isidentical(reflectee, other.reflectee)
or (b) the remote objects reflected by this mirror and byother
are identical.
Methods
-
delegate(
Invocation invocation) → dynamic -
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.…
-
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.…