TSwitch constructor
const
TSwitch({
- Key? key,
- bool? value = false,
- ValueNotifier<
bool?> ? valueNotifier, - ValueChanged<
bool?> ? onValueChanged, - FocusNode? focusNode,
- String? label,
- bool isRequired = false,
- List<
String? Function(bool?)> ? rules, - Duration? validationDebounce,
- bool autoFocus = false,
- bool disabled = false,
- Color? color,
- 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,
});