WeatherDaily class

Model represents daily forecast weather for WeatherOneCall.

Constructors

WeatherDaily(Map<String, dynamic> _weatherData, {required DateTime? date, required DateTime? sunrise, required DateTime? sunset, required DateTime? moonrise, required DateTime? moonset, required double? moonPhase, required String? summary, required double? tempMorning, required double? tempDay, required double? tempEvening, required double? tempNight, required double? tempMin, required double? tempMax, required double? tempFeelsLikeMorning, required double? tempFeelsLikeDay, required double? tempFeelsLikeEvening, required double? tempFeelsLikeNight, required double? pressure, required double? humidity, required double? dewPoint, required double? windSpeed, required double? windDegree, required double? windGust, required double? cloudiness, required double? uvi, required double? pop, required double? rain, required double? snow, required String? weatherDescription, required String? weatherMain, required String? weatherIcon, required int? weatherConditionCode})
const
WeatherDaily.fromJson(Map<String, dynamic> jsonData)
Creating WeatherDaily instance from json.
factory

Properties

cloudiness double?
Cloudiness, %
final
date DateTime?
Time of the forecasted data, Unix, UTC.
final
dewPoint double?
Atmospheric temperature (varying according to pressure and humidity) below which water droplets begin to condense and dew can form.
final
hashCode int
The hash code for this object.
no setterinherited
humidity double?
Humidity, %
final
moonPhase double?
Moon phase.
final
moonrise DateTime?
The time of when the moon rises for this day, Unix, UTC.
final
moonset DateTime?
The time of when the moon sets for this day, Unix, UTC.
final
pop double?
Probability of precipitation. The values of the parameter vary between 0 and 1, where 0 is equal to 0%, 1 is equal to 100%
final
pressure double?
Atmospheric pressure on the sea level, hPa
final
rain double?
Precipitation volume, mm/h
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snow double?
Snow volume, mm/h
final
summary String?
Human-readable description of the weather conditions for the day.
final
sunrise DateTime?
Sunrise time, Unix, UTC. For polar areas in midnight sun and polar night periods this parameter is not returned in the response
final
sunset DateTime?
Sunset time, Unix, UTC. For polar areas in midnight sun and polar night periods this parameter is not returned in the response.
final
tempDay double?
Day temperature.
final
tempEvening double?
Evening temperature.
final
tempFeelsLikeDay double?
This accounts for the human perception of weather. Day temperature.
final
tempFeelsLikeEvening double?
This accounts for the human perception of weather. Evening temperature.
final
tempFeelsLikeMorning double?
This accounts for the human perception of weather. Morning temperature.
final
tempFeelsLikeNight double?
This accounts for the human perception of weather. Night temperature.
final
tempMax double?
Max daily temperature.
final
tempMin double?
Min daily temperature.
final
tempMorning double?
Morning temperature.
final
tempNight double?
Night temperature.
final
uvi double?
The maximum value of UV index for the day.
final
weatherConditionCode int?
Weather condition codes.
final
weatherDescription String?
A long description of the weather.
final
weatherIcon String?
Icon depicting current weather.
final
weatherMain String?
A brief description of the weather.
final
windDegree double?
Wind direction, degrees (meteorological)
final
windGust double?
Wind gust, meter/sec
final
windSpeed double?
Wind speed, meter/sec
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
The original JSON data from the API
toString() String
A string representation of this object.
override

Operators

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