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. bool isRequired = false,
  8. List<String? Function(bool?)>? rules,
  9. Duration? validationDebounce,
  10. bool autoFocus = false,
  11. bool disabled = false,
  12. Color? color,
  13. TInputSize? size = TInputSize.md,
  14. bool tristate = false,
})

Implementation

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