TSwitch constructor

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

Implementation

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