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. 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,
})

Implementation

const TSwitch({
  super.key,
  this.value = false,
  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,
});