callMethod<T> function Null safety

T callMethod<T>(
  1. Object o,
  2. String method,
  3. List<Object?> args
)

Implementation

T callMethod<T>(Object o, String method, List<Object?> args) {
  assertInteropArgs(args);
  return JS<dynamic>('Object|Null', '#[#].apply(#, #)', o, method, o, args);
}