unitString property
String
get
unitString
Temperature unit of measurement with degrees.
Implementation
String get unitString {
switch (unit) {
case TemperatureUnit.fahrenheit:
return '°F';
case TemperatureUnit.celsius:
default:
return '°C';
}
}