weather2icon function
- Weather? w
Implementation
IconData weather2icon(Weather? w) => w == Weather.rain
? WeatherIcons.rain
: w == Weather.kinda_cloudy_but_some_sunshine
? WeatherIcons.day_cloudy
: w == Weather.sunny
? WeatherIcons.day_sunny
: w == Weather.clouds
? WeatherIcons.cloud
: WeatherIcons.na;