CustomToggleButton constructor

const CustomToggleButton({
  1. Key? key,
  2. required String textOn,
  3. required String textOff,
  4. required dynamic onChanged(
    1. String value
    ),
  5. double width = 200,
  6. double height = 45,
  7. double borderRadius = 50,
  8. int transitionTime = 300,
  9. Color activeTextColor = Colors.black,
  10. Color activeSwitchColor = Colors.white,
  11. Color inactiveTextColor = Colors.white,
  12. Color inactiveSwitchColor = Colors.blue,
})

Implementation

const CustomToggleButton({
  Key? key,
  required this.textOn,
  required this.textOff,
  required this.onChanged,
  this.width = 200,
  this.height = 45,
  this.borderRadius = 50,
  this.transitionTime = 300,
  this.activeTextColor = Colors.black,
  this.activeSwitchColor = Colors.white,
  this.inactiveTextColor = Colors.white,
  this.inactiveSwitchColor = Colors.blue,
}) : super(key: key);