call method

void call({
  1. Object? object,
  2. required String methodName,
  3. List<Object?> args = const [],
})

Implementation

void call({
  Object? object,
  required String methodName,
  List<Object?> args = const [],
}) {
  object ??= js.globalThis;
  js.callMethod(object, methodName, args);
}