Avoid using web libraries,
dart:js_util in Flutter packages that are not web plugins. These libraries are
not supported outside a web context; functionality that depends on them will
fail at runtime in Flutter mobile, and their use is generally discouraged in
Web library access is allowed in:
webas a supported context
otherwise, imports of
dart:js_util are disallowed.