invokeMethodWith<R> method

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

Invokes the method for methodName with the associated object.

Implementation

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