value property
set
value
(bool newValue)
Sets the current value of the toggle and rebuilds the visual state.
Implementation
set value(bool newValue) {
if (_value != newValue) {
_value = newValue;
_rebuild();
}
}