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) {
  _value = v;
  _invalidateCache();
}