CircleToggleButton constructor

const CircleToggleButton({
  1. Key? key,
  2. required Widget falseIcon,
  3. required Widget trueIcon,
  4. Duration duration = const Duration(milliseconds: 400),
  5. double size = 24,
  6. double iconSize = 16,
  7. bool initialValue = false,
  8. Color? falseBackground,
  9. Color? trueBackground,
  10. ValueChanged<bool>? onChanged,
})

Implementation

const CircleToggleButton({
  super.key,
  required this.falseIcon,
  required this.trueIcon,
  this.duration = const Duration(milliseconds: 400),
  this.size = 24,
  this.iconSize = 16,
  this.initialValue = false,
  this.falseBackground,
  this.trueBackground,
  this.onChanged,
});