WeatherType enum Null safety

The enum for identifying what the weather condition is. The main description parameter provides one suitable for display, so this is primarily provided to aid in implementing conditional logic dependent on the weather, for example, a dynamic background

Inheritance

Constructors

WeatherType()
const

Values

ClearDay → const WeatherType
const WeatherType(0)
ClearNight → const WeatherType
const WeatherType(1)
LightCloudyDay → const WeatherType
const WeatherType(2)
LightCloudyNight → const WeatherType
const WeatherType(3)
MediumCloudyDay → const WeatherType
const WeatherType(4)
MediumCloudyNight → const WeatherType
const WeatherType(5)
HeavyCloudyDay → const WeatherType
const WeatherType(6)
HeavyCloudyNight → const WeatherType
const WeatherType(7)
Overcast → const WeatherType
const WeatherType(8)
Dusty → const WeatherType
const WeatherType(9)
Foggy → const WeatherType
const WeatherType(10)
Hazy → const WeatherType
const WeatherType(11)
Thunder → const WeatherType
const WeatherType(12)
LightRain → const WeatherType
const WeatherType(13)
MediumRain → const WeatherType
const WeatherType(14)
HeavyRain → const WeatherType
const WeatherType(15)
FreezingRain → const WeatherType
const WeatherType(16)
Hail → const WeatherType
const WeatherType(17)
Sleet → const WeatherType
const WeatherType(18)
LightSnow → const WeatherType
const WeatherType(19)
MediumSnow → const WeatherType
const WeatherType(20)
HeavySnow → const WeatherType
const WeatherType(21)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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

Constants

values → const List<WeatherType>
A constant List of the values in this enum, in order of their declaration.
[ClearDay, ClearNight, LightCloudyDay, LightCloudyNight, MediumCloudyDay, MediumCloudyNight, HeavyCloudyDay, HeavyCloudyNight, Overcast, Dusty, Foggy, Hazy, Thunder, LightRain, MediumRain, HeavyRain, …