value property

bool get value

Whether the toggle is in the active (on) state.

Implementation

bool get value => _value;
set value (bool v)

Sets the toggle value and invalidates the paint cache.

Implementation

set value(bool v) {
  if (_value == v) return;
  _value = v;
  _invalidateCache();
  markNeedsPaint();
}