createFunctionArg0 method

Function createFunctionArg0(
  1. Function dartFunction
)
override

Implementation

Function createFunctionArg0(Function dartFunction) {
  final funcId = dartFunction.hashCode.toString();
  Context.functionMap[funcId] ??= () {
    return JSObject.transformToBrowserJSObject(dartFunction());
  };
  Context.functionArgsCount[funcId] = 0;
  return Context.functionMap[funcId]!;
}