isSnow static method

bool isSnow(
  1. WeatherType weatherType
)

判断是否下雪

Implementation

static bool isSnow(WeatherType weatherType) {
  return weatherType == WeatherType.lightSnow ||
      weatherType == WeatherType.middleSnow ||
      weatherType == WeatherType.heavySnow;
}