isWeb property

bool isWeb

Whether the application was compiled to run on the web.

Implementation

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