When passing Dart functions to Javascript code, the current convention is to use allowInterop() from package:js (presumably). This works pretty well but it creates a closure, which is not allowed by Javascript code that expects a constructor function.
I've done some digging, but arrive at a dead end here:
external DART_CLOSURE_TO_JS(Function function);
Where does this go? Is it open source?
Would it be possible for a Dart function to be converted to a non-closure JS function in either package:js or dart:js? If not, why?