I have a few files that I have written in dart that I want to compile to javascript and include in a few html files that are running in my Android application.
The files consist of a main method, then there is an api layer with 3 functions that other javascript code will call at run-time. It's very important that I include as little of dart's libraries as possible (so tree-shaking is a must), and when the tree-shaking / minification process happens, I need to ensure that the 3 api layer functions don't get renamed / optimized out because it thinks they aren't being called?
How do I tell dart2js to leave the signature of certain functions alone, and not to prune them out because it thinks they aren't being used?