enabled property

bool get enabled

Whether the toggle is interactive.

Implementation

bool get enabled => _enabled;
set enabled (bool v)

Sets the enabled state and invalidates the paint cache.

Implementation

set enabled(bool v) {
  _enabled = v;
  _invalidateCache();
}