createFunctionArg1 method

Function createFunctionArg1(
  1. Function dartFunction
)
override

Implementation

Function createFunctionArg1(Function dartFunction) {
  final funcId = dartFunction.hashCode.toString();
  Context.functionMap[funcId] ??= (arg0) {
    return JSObject.transformToBrowserJSObject(
        dartFunction(JSObject.transformToMPJSObject(arg0)));
  };
  Context.functionArgsCount[funcId] = 1;
  return Context.functionMap[funcId]!;
}