Handles the event when a checkbox component is checked or unchecked.
A boolean indicating the state of the checkbox: - true if the checkbox is checked. - false if the checkbox is unchecked.
true
false