This is possible with Fancy Syntax. See the section on registering top-level variables: https://github.com/dart-lang/fancy-syntax#registering-top-level-variables
Access to top-level functions inside WebComponent
-
04-06-2022 - |
Question
Is it possible to access top-level function inside Dart WebUI WebComponent?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow