callMethod function Null safety

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

Implementation

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