Is there a better way to make a method of a Dart class callable from JS with the new js 0.6.0 package? Is there a better way to make a method of a Dart class callable from JS with the new js 0.6.0 package? dart dart

Is there a better way to make a method of a Dart class callable from JS with the new js 0.6.0 package?


Short answer: no.

pkg/js is currently focused on letting a Dart app consume JavaScript libraries.

We want to make it easier to export APIs written in Dart to JavaScript consumers, but that will come later.