OneCallWeatherFactory constructor

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

Implementation

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