I'm currently trying to connect a JS code to my flutter web app. And then call a function from my flutter application in JS.
I'm thinking the problem is, flutter PWA is compiled to js (main.dart.js) and thus it's function names, and function bodies are lost. Am I right about this? Is there a way to solve this?
Thanks!
the Dart team has you covered with an interop js package which lets you call JS from the Dart VM -> package link. If you're already using that and you're encounting an error with that - lemme know.