isBrowser top-level constant Null safety
Whether the test is running in a web browser compiled to JavaScript.
See also:
- kIsWeb, the equivalent constant in the
foundation
library.
Implementation
const bool isBrowser = identical(0, 0.0);
Whether the test is running in a web browser compiled to JavaScript.
See also:
foundation
library.const bool isBrowser = identical(0, 0.0);