OpenWeather constructor

OpenWeather({
  1. required String apiKey,
})

Constructor for the OpenWeather class.

Takes an apiKey as a required parameter to authenticate API requests.

Implementation

OpenWeather({required this.apiKey});