Code example for ToggleButton

Methods: isChecked