Thermostat constructor

const Thermostat({
  1. required SetPointMode setPointMode,
  2. required double curVal,
  3. required double setPoint,
  4. required double minVal,
  5. required double maxVal,
  6. void onChanged(
    1. double newValue
    )?,
  7. double size = 300,
  8. ThermostatThemeType themeType = ThermostatThemeType.light,
  9. String formatCurVal(
    1. double
    )?,
  10. String formatSetPoint(
    1. double
    )?,
  11. ThermostatTheme? theme,
  12. bool turnOn = false,
  13. Key? key,
})

Implementation

const Thermostat({
  required this.setPointMode,
  required this.curVal,
  required this.setPoint,
  required this.minVal,
  required this.maxVal,
  this.onChanged,
  this.size = 300,
  this.themeType = ThermostatThemeType.light,
  this.formatCurVal,
  this.formatSetPoint,
  this.theme,
  this.turnOn = false,
  Key? key,
})  : super(key: key);