AnimatedSwitchButton constructor

const AnimatedSwitchButton({
  1. Key? key,
  2. required dynamic onToggle(
    1. bool
    ),
  3. bool initialValue = false,
  4. Color? firstStateColor,
  5. Color? secondStateColor,
  6. Icon? firstStateIcon,
  7. Icon? secondStateIcon,
  8. Color? firstStateIconColor,
  9. Color? secondStateIconColor,
  10. ComponentSize size = ComponentSize.md,
})

Implementation

const AnimatedSwitchButton({
  super.key,
  required this.onToggle,
  this.initialValue = false,
  this.firstStateColor,
  this.secondStateColor,
  this.firstStateIcon,
  this.secondStateIcon,
  this.firstStateIconColor,
  this.secondStateIconColor,
  this.size = ComponentSize.md,
});