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) =>
    JS('Object|Null', '#[#].apply(#, #)', o, method, o, args);