Weather class

A class for storing a weather-query response from OpenWeatherMap. This includes various measures such as location, temperature, wind, snow, rain and humidity.

Constructors

Weather(Map<String, dynamic> weatherData)

Properties

areaName → String
Name of the area, ex Mountain View, or Copenhagen Municipality
read-only
cloudiness → double
The level of cloudiness in Okta (0-9 scale)
read-only
country → String
Country code, ex US or DK
read-only
date → DateTime
Date of the weather observation
read-only
humidity → double
Humidity in percent
read-only
latitude → double
Latitude of the weather observation
read-only
longitude → double
Longitude of the weather observation
read-only
pressure → double
Pressure in Pascal
read-only
rainLast3Hours → double
Rain fall last 3 hours measured in volume
read-only
rainLastHour → double
Rain fall last hour measured in volume
read-only
snowLast3Hours → double
Rain fall last 3 hours measured in volume
read-only
snowLastHour → double
Rain fall last 3 hours measured in volume
read-only
sunrise → DateTime
Timestamp of sunrise
read-only
sunset → DateTime
Timestamp of sunset
read-only
temperature Temperature
Mean Temperature. Available as Kelvin, Celsius and Fahrenheit.
read-only
tempMax Temperature
Max Temperature. Available as Kelvin, Celsius and Fahrenheit.
read-only
tempMin Temperature
Min Temperature. Available as Kelvin, Celsius and Fahrenheit.
read-only
weatherDescription → String
A long description of the weather
read-only
weatherIcon → String
A brief description of the weather
read-only
weatherMain → String
A brief description of the weather
read-only
windDegree → double
Wind direction in degrees
read-only
windSpeed → double
Wind speed in m/s
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited