OneCallWeatherFactory constructor
OneCallWeatherFactory({
- required String apiKey,
- Language language = Language.ENGLISH,
- required UnitSettings settings,
- LocationCoords? locationCoords,
- List<
ExcludeField> ? exclusions, - 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",
);