WeatherService class
Service for fetching weather data:
Constructors
- WeatherService(String apikey, {WeatherLanguage language = WeatherLanguage.english, OneCallApi oneCallApi = OneCallApi.api_2_5, OWMBuilder? owmBuilder})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
currentWeatherByLocation(
{required double latitude, required double longitude}) → Future< WeatherCurrent> - Fetch WeatherCurrent based on geographical coordinates.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
oneCallWeatherByLocation(
{required double latitude, required double longitude}) → Future< WeatherOneCall> - Fetch WeatherOneCall based on geographical coordinates.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited