I\'m a bit of a newb to dart, and trying to get my feet wet by writing some library functions in it.
While I\'ve had no problem calling javascript functions from da
In Dart 2.3.0 I had to tweak the solution just a bit for allowInterop to play nice.
allowInterop
import 'dart:js' as js; main() { String foo() { return "bar!"; } js.context['foo'] = js.allowInterop(foo); }