Historical constructor
Historical({
- String apiUrl = 'https://archive-api.open-meteo.com/v1/',
- required double latitude,
- required double longitude,
- double? elevation,
- DateTime? start_date,
- DateTime? end_date,
- TemperatureUnit? temperature_unit,
- WindspeedUnit? windspeed_unit,
- PrecipitationUnit? precipitation_unit,
- 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);
}