createFunctionArg3 method

Function createFunctionArg3(
  1. Function dartFunction
)
override

Implementation

Function createFunctionArg3(Function dartFunction) {
  final funcId = dartFunction.hashCode.toString();
  Context.functionMap[funcId] ??= (arg0, arg1, arg2) {
    return JSObject.transformToBrowserJSObject(dartFunction(
      JSObject.transformToMPJSObject(arg0),
      JSObject.transformToMPJSObject(arg1),
      JSObject.transformToMPJSObject(arg2),
    ));
  };
  Context.functionArgsCount[funcId] = 3;
  return Context.functionMap[funcId]!;
}