Weather constructor

Weather({
  1. String apiUrl = 'https://api.open-meteo.com/v1/',
  2. required double latitude,
  3. required double longitude,
  4. double? elevation,
  5. TemperatureUnit? temperature_unit,
  6. WindspeedUnit? windspeed_unit,
  7. PrecipitationUnit? precipitation_unit,
  8. int? past_days,
  9. int? forecast_days,
  10. int? forecast_hours,
  11. int? forecast_minutely_15,
  12. int? past_hours,
  13. int? past_minutely_15,
  14. DateTime? start_date,
  15. DateTime? end_date,
  16. DateTime? start_hour,
  17. DateTime? end_hour,
  18. DateTime? start_minutely_15,
  19. DateTime? end_minutely_15,
  20. CellSelection? cell_selection,
  21. String? apikey,
})

Implementation

Weather({
  this.apiUrl = 'https://api.open-meteo.com/v1/',
  required this.latitude,
  required this.longitude,
  this.elevation,
  this.temperature_unit,
  this.windspeed_unit,
  this.precipitation_unit,
  this.past_days,
  this.forecast_days,
  this.forecast_hours,
  this.forecast_minutely_15,
  this.past_hours,
  this.past_minutely_15,
  this.start_date,
  this.end_date,
  this.start_hour,
  this.end_hour,
  this.start_minutely_15,
  this.end_minutely_15,
  this.cell_selection,
  this.apikey,
}) {
  Uri.parse(apiUrl);

  throwCheckLatLng(latitude, longitude);
}