LocationView constructor
const
LocationView({
- Key? key,
- required WeatherData weatherData,
- Color? color,
A widget that displays the location view with weather data.
The LocationView widget requires weatherData
to be provided and optionally
accepts a color
to customize its appearance.
Parameters:
weatherData
: The weather data to be displayed.color
: An optional color to customize the appearance of the widget.
Implementation
const LocationView({
super.key,
required this.weatherData,
this.color,
});