I have a Dart repo that I'm working on with a friend. I plan on consuming this library in Flutter. My friend, who also needs to use this, intends to use NativeScript.
Is there a way to generate JavaScript from our Dart library? The Dart library has no dependencies (other than the Dart SDK).
If there isn't an alternative, is there a suggestion for a better way to share our code between Flutter and NativeScript?
There exists another post, Using dart to create a javascript library, that is similar to mine. However, that post was asked over 4 years ago. I imagine there may exist new developments for this Dart to JavaScript problem.