temperature property
num
get
temperature
Current temperature string, for example '22°C'.
Implementation
num get temperature => _convertFromCelsius(_temperature);
set
temperature
(num temperature)
Implementation
set temperature(num temperature) {
temperature = _convertToCelsius(temperature);
if (temperature != _temperature) {
_temperature = temperature;
_low = _temperature - 3.0;
_high = _temperature + 4.0;
notifyListeners();
}
}