isBrowser top-level constant Null safety

bool const isBrowser

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);