createFunctionArg2 method
Implementation
Function createFunctionArg2(Function dartFunction) {
final funcId = dartFunction.hashCode.toString();
Context.functionMap[funcId] ??= (arg0, arg1) {
return JSObject.transformToBrowserJSObject(dartFunction(
JSObject.transformToMPJSObject(arg0),
JSObject.transformToMPJSObject(arg1),
));
};
Context.functionArgsCount[funcId] = 2;
return Context.functionMap[funcId]!;
}