invokeMethod<R> method

R? invokeMethod<R>(
  1. String methodName,
  2. Iterable<Object?>? positionalArguments, [
  3. Map<Symbol, Object?>? namedArguments
])

Invokes the method for methodName.

Implementation

R? invokeMethod<R>(String methodName, Iterable<Object?>? positionalArguments,
    [Map<Symbol, Object?>? namedArguments]) {
  var method = this.method(methodName);
  return method?.invoke(positionalArguments, namedArguments);
}