kIsWeb top-level constant
bool
const kIsWeb
Whether running on the Web.
Since JS does not support integers, an int and a double will be identical when representing the same value. However, this will not be true for all other compilation targets.
Implementation
const bool kIsWeb = identical(0, 0.0);