value property

bool get value

Gets the current value of the toggle.

Implementation

bool get value => _value;
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();
  }
}