DualSwitch constructor

const DualSwitch({
  1. Key? key,
  2. required ValueChanged<bool>? onChanged,
  3. String? acceptText,
  4. String? acceptedText,
  5. String? rejectText,
  6. String? rejectedText,
  7. Color? acceptColor,
  8. Color? rejectColor,
  9. String? centerIcon,
  10. bool? reset = true,
})

Implementation

const DualSwitch({super.key,
  required this.onChanged,
  this.acceptText,
  this.acceptedText,
  this.rejectText,
  this.rejectedText,
  this.acceptColor,
  this.rejectColor,
  this.centerIcon,
  this.reset = true
});