invokeStaticMethod<R> method

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

Invokes the static method for methodName.

Implementation

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