WeatherApi class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Constructors

WeatherApi.new({required String apiKey})
//////////// ////////////
const

Properties

apiKey → String
//////////// ////////////
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCurrentPrecipitation({required double lat, required double lon}) → Future<WeatherData>
getCurrentWeather({required double latitude, required double longitude}) → Future<WeatherData>
//////////// //////////// Fetches current weather data for a specific location
getHourlyForecast({required double latitude, required double longitude}) → Future<List<WeatherData>>
//////////// //////////// Retrieves weather forecast for the next few hours
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