WeatherData class

Weather data from Open-Meteo API.

Constructors

WeatherData({required double temperature, required int weatherCode, required double windSpeed, required int windDirection, required int humidity, required double precipitation, required DateTime time, double? dailyMaxTemp, double? dailyMinTemp, double? todayTotalPrecipitation})
WeatherData.fromJson(Map<String, dynamic> json)
factory

Properties

dailyMaxTemp → double?
final
dailyMinTemp → double?
final
hashCode → int
The hash code for this object.
no setterinherited
humidity → int
final
precipitation → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
temperature → double
final
time → DateTime
final
todayTotalPrecipitation → double?
final
weatherCode → int
final
weatherDescription → String
Get weather description from WMO weather code.
no setter
weatherIcon → String
Get weather icon based on weather code.
no setter
windDirection → int
final
windDirectionArrow → String
Get arrow icon for wind direction. Wind direction follows meteorological convention: indicates where wind is coming FROM. Arrow points toward the direction the wind is coming FROM (e.g., 90° = East wind = arrow points → toward east).
no setter
windDirectionDescription → String
Get wind direction description from degrees. 0° = North, 90° = East, 180° = South, 270° = West.
no setter
windDirectionFullName → String
Get wind direction full name.
no setter
windSpeed → double
final

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