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