Thermostat class

Inheritance

Constructors

Thermostat({required SetPointMode setPointMode, required double curVal, required double setPoint, required double minVal, required double maxVal, void onChanged(double newValue)?, double size = 300, ThermostatThemeType themeType = ThermostatThemeType.light, String formatCurVal(double)?, String formatSetPoint(double)?, ThermostatTheme? theme, bool turnOn = false, Key? key})
const

Properties

curVal double
Current temperature to display in a middle.
final
formatCurVal → (String Function(double)?)
Used to format curValue to display it on the screen.
final
formatSetPoint → (String Function(double)?)
Used to format setPoint to display it on the screen.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxVal double
Max value for the set temperature slider.
final
minVal double
Minimal value for the set temperature slider.
final
onChanged → (void Function(double newValue)?)
Is called when user released
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setPoint double
Value of temperature set point.
final
setPointMode SetPointMode
Stores the availability of temperature set point.
final
size double
Diameter of outer circle.
final
theme ThermostatTheme?
final
themeType ThermostatThemeType
final
turnOn bool
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited