unit property
TemperatureUnit
get
unit
Temperature unit, for example 'celsius'.
Implementation
TemperatureUnit get unit => _unit;
set
unit
(TemperatureUnit unit)
Implementation
set unit(TemperatureUnit unit) {
if (unit != _unit) {
_unit = unit;
notifyListeners();
}
}