LocationForecast constructor

LocationForecast({
  1. required DateTime updated,
  2. required Coordinates coord,
  3. required List<Conditions> forecast,
})

Creates a LocationForecast instance.

The API users typically do not create LocationForecast instances directly.

Parameters

  • updated: UTC datetime when the forecast was last updated.
  • coord: Geographic coordinates for this forecast.
  • forecast: List of weather conditions for the location.

Implementation

LocationForecast({
  required this.updated,
  required this.coord,
  required this.forecast,
});