Weather class

Seamless integration of high-resolution weather models with up 16 days forecast.

https://open-meteo.com/en/docs/

Constructors

Weather.new({String apiUrl = 'https://api.open-meteo.com/v1/', required double latitude, required double longitude, double? elevation, TemperatureUnit? temperature_unit, WindspeedUnit? windspeed_unit, PrecipitationUnit? precipitation_unit, int? past_days, int? forecast_days, int? forecast_hours, int? forecast_minutely_15, int? past_hours, int? past_minutely_15, DateTime? start_date, DateTime? end_date, DateTime? start_hour, DateTime? end_hour, DateTime? start_minutely_15, DateTime? end_minutely_15, CellSelection? cell_selection, String? apikey})

Properties

apikey String?
getter/setter pair
apiUrl String
getter/setter pair
cell_selection CellSelection?
getter/setter pair
elevation double?
getter/setter pair
end_date DateTime?
getter/setter pair
end_hour DateTime?
getter/setter pair
end_minutely_15 DateTime?
getter/setter pair
forecast_days int?
getter/setter pair
forecast_hours int?
getter/setter pair
forecast_minutely_15 int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
latitude double
final
longitude double
final
past_days int?
getter/setter pair
past_hours int?
getter/setter pair
past_minutely_15 int?
getter/setter pair
precipitation_unit PrecipitationUnit?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start_date DateTime?
getter/setter pair
start_hour DateTime?
getter/setter pair
start_minutely_15 DateTime?
getter/setter pair
temperature_unit TemperatureUnit?
getter/setter pair
windspeed_unit WindspeedUnit?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
raw_request({List<Hourly>? hourly, List<Daily>? daily, List<Current>? current}) Future<Map<String, dynamic>>
request({List<Hourly>? hourly, List<Daily>? daily, List<Current>? current}) Future<WeatherResponse>
toString() String
A string representation of this object.
inherited

Operators

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