isWeb static method

bool isWeb()

判断是否为Web端

Implementation

static bool isWeb() {
  return getPlatformType() == PlatformType.web;
}