delegate method Null safety
- Invocation invocation
Performs invocation
on the reflectee of this ObjectMirror.
Equivalent to
if (invocation.isGetter) {
return this.getField(invocation.memberName).reflectee;
} else if (invocation.isSetter) {
return this.setField(invocation.memberName,
invocation.positionalArguments[0]).reflectee;
} else {
return this.invoke(invocation.memberName,
invocation.positionalArguments,
invocation.namedArguments).reflectee;
}
Implementation
delegate(Invocation invocation);