temperature property

num get temperature

The temperature in degrees Celsius

Implementation

num get temperature {
  var temperature = value;
  if (scale == ThermostatSetPointScale.fahrenheit)
    temperature = (temperature - 32) * 5 / 9;
  return temperature;
}