callMethod method

dynamic callMethod(
  1. String method, [
  2. List? arguments
])
override

Implementation

dynamic callMethod(String method, [List<dynamic>? arguments]) {
  final result = DevMPJSHost.shared.callMethod(
    method,
    arguments?.map((e) => transformToBrowserJSObject(e)).toList() ?? [],
    objectRef,
  );
  return transformToMPJSObject(result);
}