isWasm top-level constant

bool const isWasm

True, if the code is running in WASM.

Implementation

const isWasm = bool.fromEnvironment('dart.tool.dart2wasm');