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