isWeb property

bool get isWeb

Whether the application was compiled to run on the web.

Implementation

bool get isWeb {
  try {
    return kIsWeb;
  } catch (e) {
    return false;
  }
}