WeatherForecast class

Contains the weather forecast for a specific day.

Annotations

Constructors

WeatherForecast.new({String? day, String? dayShort, DateTime? timestamp, String? symbolLetter, String? symbolText, String? symbol, double? maxTemperature, double? minTemperature, int? rainfall, double? rainfallRisk})
WeatherForecast.fromJson(Map<String, dynamic> json)
Creates a WeatherForecast from a JSON object.
factory

Properties

day String?
The day of the week.
getter/setter pair
dayShort String?
Short form of the day of the week.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxTemperature double?
Daily maximum air temperature in °C.
getter/setter pair
minTemperature double?
Daily minimum air temperature in °C.
getter/setter pair
rainfall int?
The current rainfall in mm/10min, rounded to integers.
getter/setter pair
rainfallRisk double?
The risk of rainfall in percent. Range: 0-100.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String?
Weather forecast as symbol. See legend.
getter/setter pair
symbolLetter String?
Weather forecast as symbol, usually a letter.
getter/setter pair
symbolText String?
Text explaining the weather symbol.
getter/setter pair
timestamp DateTime?
Timestamp of the data.
getter/setter pair

Methods

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

Operators

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

Static Methods

listFromJson(List json) List<WeatherForecast>
Creates a list of WeatherForecast from a JSON object.