WeatherUtil class

天气的相关工具类

Constructors

WeatherUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getColor(WeatherType weatherType) List<Color>
getWeatherDesc(WeatherType weatherType) String
isRainy(WeatherType weatherType) bool
判断是否下雨,小中大包括雷暴,都是属于雨的类型
isSnow(WeatherType weatherType) bool
判断是否下雪
isSnowRain(WeatherType weatherType) bool