I'm working on a Flutter web project. The web/index.html file is injecting a JavaScript script which could be simplified as: <script> window['dataLayer'
I have this simplified dart file using dart:js: (dataLayer is used for Google tags, if that's any help) @JS() import 'package:js/js.dart'; @JS('dataLayer.push'