HourlyWeatherData class

Hourly weather data series.

Constructors

HourlyWeatherData({required List<HourlyWeatherPoint> data, required DateTime startDate, required DateTime endDate})
HourlyWeatherData.fromJson(Map<String, dynamic> json)
factory

Properties

data List<HourlyWeatherPoint>
final
endDate DateTime
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDate DateTime
final

Methods

getDailyAverageHumidity() Map<DateTime, double>
Get daily average humidity.
getDailyAverages() Map<DateTime, double>
Get daily average temperatures.
getDailyAverageWindSpeed() Map<DateTime, double>
Get daily average wind speed.
getDailyMinMax(String dataType) Map<DateTime, (double, double)>
Get daily min/max values for a specific data type. Returns a map where each date maps to (min, max) tuple.
getDailyPrecipitationHours() Map<DateTime, int>
Get count of hours with precipitation for each day. Counts hours where precipitation > 0.
getDailyTotalPrecipitation() Map<DateTime, double>
Get daily total precipitation. Sums all hourly precipitation values for each day.
getDailyTotalPrecipitationRange() → (double, double)
Get daily total precipitation range (min, max). Used for chart axis scaling when displaying daily totals. Min is always 0 (precipitation cannot be negative).
getHumidityRange() → (double, double)
Get humidity range (min, max).
getPrecipitationRange() → (double, double)
Get precipitation range (min, max) for hourly data.
getTemperatureRange() → (double, double)
Get temperature range (min, max).
getWindSpeedRange() → (double, double)
Get wind speed range (min, max).
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