isWorkerThread property
True if the current thread is a Web Worker with no DOM access
Implementation
static final bool isWorkerThread = jsWindow == null;
True if the current thread is a Web Worker with no DOM access
static final bool isWorkerThread = jsWindow == null;