AntdSwitch constructor
const
AntdSwitch({
- Key? key,
- AntdSwitchStyle? style,
- AntdStyleBuilder<
AntdSwitchStyle, AntdSwitch> ? styleBuilder, - bool? disabled,
- bool? readOnly,
- bool? value,
- bool? autoCollect = true,
- ValueChanged<
bool?> ? onChange, - Widget? content,
- Widget? activeContent,
- Duration duration = const Duration(milliseconds: 200),
- AntdHapticFeedback? hapticFeedback = AntdHapticFeedback.light,
Implementation
const AntdSwitch(
{super.key,
super.style,
super.styleBuilder,
super.disabled,
super.readOnly,
super.value,
super.autoCollect,
super.onChange,
this.content,
this.activeContent,
this.duration = const Duration(milliseconds: 200),
this.hapticFeedback = AntdHapticFeedback.light});