isBrowser top-level property

bool isBrowser

Whether the test is running in a web browser compiled to JavaScript.

Implementation

bool get isBrowser {
  return _kIsCompiledToJavaScript;
}