focused property

bool get focused

Whether the toggle currently has keyboard focus.

Implementation

bool get focused => _focused;
set focused (bool v)

Sets the focus state and invalidates the paint cache.

Implementation

set focused(bool v) {
  _focused = v;
  _invalidateCache();
}