LocationView constructor

const LocationView({
  1. Key? key,
  2. required WeatherData weatherData,
  3. 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,
});