AntdSwitch constructor

const AntdSwitch({
  1. Key? key,
  2. AntdSwitchStyle? style,
  3. AntdStyleBuilder<AntdSwitchStyle, AntdSwitch>? styleBuilder,
  4. bool? disabled,
  5. bool? readOnly,
  6. bool? value,
  7. bool? autoCollect = true,
  8. ValueChanged<bool?>? onChange,
  9. Widget? content,
  10. Widget? activeContent,
  11. Duration duration = const Duration(milliseconds: 200),
  12. 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});