OneCallWeatherFactory constructor

OneCallWeatherFactory({
  1. required String apiKey,
  2. Language language = Language.ENGLISH,
  3. required UnitSettings settings,
  4. LocationCoords? locationCoords,
  5. List<ExcludeField>? exclusions,
})

Implementation

OneCallWeatherFactory({
  required this.apiKey,
  this.language = Language.ENGLISH,
  required this.settings,
  this.locationCoords,
  this.exclusions,
}) : assert(
        locationCoords != null,
        "A city name or an instance of LocationCoords must be provided",
      );