OpenWeatherByZipCode constructor
const
OpenWeatherByZipCode({})
Creates an instance of OpenWeatherByZipCode.
The apiKey
, zipCode
, and countryCode
parameters are required.
The weatherUnits
defaults to WeatherUnits.IMPERIAL, the color
defaults to Colors.black,
and the language
defaults to Languages.ENGLISH.
Implementation
const OpenWeatherByZipCode(
{super.key,
required this.apiKey,
required this.zipCode,
required this.countryCode,
this.weatherUnits = WeatherUnits.IMPERIAL,
this.color = Colors.black,
this.language = Languages.ENGLISH});