const bool parseIsWeb = identical(0, 0.0); fails on wasm. Why not do the normal thing? I see this code is dart and not flutter. Flutter does it this way which I assume works. const bool parseIsWeb = bool.fromEnvironment('dart.library.js_util');