setupJavaScriptCallback method

void setupJavaScriptCallback()

Implementation

void setupJavaScriptCallback() {
  if (kIsWeb) {
    js.context['dartCallback'] = js.allowInterop((data) {
      handleJavaScriptUpdate(
          JavaScriptUpdate(data['methodName'], data['data']));
    });
  }
}