TCheckbox constructor

const TCheckbox({
  1. Key? key,
  2. bool? value,
  3. ValueNotifier<bool?>? valueNotifier,
  4. ValueChanged<bool?>? onValueChanged,
  5. FocusNode? focusNode,
  6. String? label,
  7. String? tag,
  8. bool isRequired = false,
  9. List<String? Function(bool?)>? rules,
  10. Duration? validationDebounce,
  11. bool autoFocus = false,
  12. bool disabled = false,
  13. Color? color,
  14. TInputSize? size = TInputSize.md,
  15. bool tristate = false,
  16. String? helperText,
  17. String? info,
  18. TInputFieldTheme? theme,
})

Creates a checkbox input.

Implementation

const TCheckbox({
  super.key,
  this.value,
  this.valueNotifier,
  this.onValueChanged,
  this.focusNode,
  this.label,
  this.tag,
  this.isRequired = false,
  this.rules,
  this.validationDebounce,
  this.autoFocus = false,
  this.disabled = false,
  this.color,
  this.size = TInputSize.md,
  this.tristate = false,
  this.helperText,
  this.info,
  this.theme,
});