Temperature constructor
Temperature({})
A class representing temperature-related data.
The Temperature class holds information about the current temperature, feels-like temperature, minimum and maximum temperatures, atmospheric pressure, and humidity.
Properties:
currentTemperature
: The current temperature.feelsLike
: The temperature as perceived by humans.tempMin
: The minimum recorded temperature.tempMax
: The maximum recorded temperature.pressure
: The atmospheric pressure.humidity
: The humidity level.
Implementation
Temperature({
required this.currentTemperature,
required this.feelsLike,
required this.tempMin,
required this.tempMax,
required this.pressure,
required this.humidity,
});