delegate abstract method

Object? delegate(
  1. Invocation invocation
)

Performs invocation on reflectee.

Equivalent to

if (invocation.isGetter) {
  return this.invokeGetter(invocation.memberName);
} else if (invocation.isSetter) {
  return this.invokeGetter(
      invocation.memberName,
      invocation.positionalArguments[0]);
} else {
  return this.invoke(
      invocation.memberName,
      invocation.positionalArguments,
      invocation.namedArguments);
}

Required capabilities: delegate requires the delegateCapability.

Implementation

Object? delegate(Invocation invocation);