mapJSFunction function

void mapJSFunction(
  1. String jsFunctionName,
  2. MappedFunction f
)

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;
}