CupertinoCheckboxComponent constructor

const CupertinoCheckboxComponent({
  1. required bool value,
  2. required String text,
  3. required ValueChanged<bool> onChanged,
  4. Key? key,
})

Creates a CupertinoCheckboxComponent.

The value parameter is the boolean value to be displayed by the CupertinoCheckbox.

The text parameter is the text to be displayed by the CupertinoButton.

The onChanged parameter is a callback that is called when the value of the CupertinoCheckbox changes.

Implementation

const CupertinoCheckboxComponent({
  required this.value,
  required this.text,
  required this.onChanged,
  super.key,
});