Sets the toggle/checkbox state of tag and repaints.
tag
void setToggleState(String tag, bool value) { final current = _def.isToggleActive(tag); if (current != value) _def = _def.toggled(tag); repaint(); }