class UIToggleproperty valueThe current toggle state; true for the ‘on’ state.value: boolean;Relatedclass UIToggleA view class that represents a checkbox or toggle input.