IsChecked returns whether the switch is checked.
()
| 217 | |
| 218 | // IsChecked returns whether the switch is checked. |
| 219 | func (sw *Switch) IsChecked() bool { |
| 220 | return sw.StateIs(states.Checked) |
| 221 | } |
| 222 | |
| 223 | // SetChecked sets whether the switch it checked. |
| 224 | func (sw *Switch) SetChecked(on bool) *Switch { |