isBrowser property

bool get isBrowser

Whether this component is currently running in a browser JS runtime.

Implementation

bool get isBrowser => const bool.fromEnvironment('dart.library.js_interop');