Historical constructor

Historical({
  1. String apiUrl = 'https://archive-api.open-meteo.com/v1/',
  2. required double latitude,
  3. required double longitude,
  4. double? elevation,
  5. DateTime? start_date,
  6. DateTime? end_date,
  7. TemperatureUnit? temperature_unit,
  8. WindspeedUnit? windspeed_unit,
  9. PrecipitationUnit? precipitation_unit,
  10. String? apikey,
})

Implementation

Historical({
  this.apiUrl = 'https://archive-api.open-meteo.com/v1/',
  required this.latitude,
  required this.longitude,
  this.elevation,
  this.start_date,
  this.end_date,
  this.temperature_unit,
  this.windspeed_unit,
  this.precipitation_unit,
  this.apikey,
}) {
  Uri.parse(apiUrl);

  throwCheckLatLng(latitude, longitude);
}