isWeb static method

bool isWeb()

Implementation

static bool isWeb() {
  if (kIsWeb != null) {
    return kIsWeb!;
  }
    try {
      kIsWeb = bool.fromEnvironment('dart.library.js_util');
    } catch (e) {
      kIsWeb = false;
    }
  return kIsWeb!;
}