isBrowser top-level property

bool get isBrowser

Whether we're running as browser (not Node.js or Dart VM).

This is determined by checking for the querySelector function in the browser's Document API.

Implementation

bool get isBrowser => throw '';