mapJSFunction function
Maps a JavaScript function to a Dart function.
jsFunctionName
Name of the function.
f
Dart function to map.
Implementation
void mapJSFunction(String jsFunctionName, MappedFunction f) {
context[jsFunctionName] = f;
}
Maps a JavaScript function to a Dart function.
jsFunctionName
Name of the function.
f
Dart function to map.
void mapJSFunction(String jsFunctionName, MappedFunction f) {
context[jsFunctionName] = f;
}