isWeb property

bool get isWeb

Whether or not we are running on web.

By default this is the same as kIsWeb.

debugIsWebOverride may be used to override the natural value of isWeb.

Implementation

static bool get isWeb => debugIsWebOverride == null //
    ? kIsWeb
    : debugIsWebOverride == WebPlatformOverride.web;