WeatherRequest class

A class for fetching weather data in JSON format.

Constructors

WeatherRequest(String _apiKey, {Language language = Language.english})

Properties

hashCode int
The hash code for this object.
no setterinherited
language Language
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getForecastWeatherByCityName(String cityName, {int forecastDays = 1, bool airQualityIndex = false, bool alerts = false}) Future<ForecastWeather>
Fetch Forecast API data by city name.
getForecastWeatherByLocation(double latitude, double longitude, {int forecastDays = 1, bool airQualityIndex = false, bool alerts = false}) Future<ForecastWeather>
Fetch Forecast API data by location.
getRealtimeWeatherByCityName(String cityName, {bool airQualityIndex = false}) Future<RealtimeWeather>
Fetch Realtime API data by city name.
getRealtimeWeatherByLocation(double latitude, double longitude, {bool airQualityIndex = false}) Future<RealtimeWeather>
Fetch Realtime API data by location.
getResultsByCityName(String cityName) Future<SearchResults>
Fetch Search/Autocomplete API data by city name.
getResultsByLocation(double latitude, double longitude) Future<SearchResults>
Fetch Search/Autocomplete API data by location.
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