Can some one please give me an example of the Dart code that would follow this flow
1) Dart call Javascript function 2) Javascript loads some data via Javascript api's 3) Javascript returns data to Dart
Currently I can only call the Javascript function I need (via js.context.callMethod('myAmazingFunction');) but I can't receive the callback. I thought there would be something like js.context.listenForMethod('myAmazingCallback'); or similar...