CupertinoCheckboxComponent constructor
- required bool value,
- required String text,
- required ValueChanged<
bool> onChanged, - 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,
});