MySwitchButton constructor

const MySwitchButton({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool> onChanged,
  4. Color activeColor = Colors.green,
  5. Color backgroundColor = Colors.grey,
  6. double width = 50,
  7. double height = 30,
})

Implementation

const MySwitchButton({
  super.key,
  required this.value,
  required this.onChanged,
  this.activeColor = Colors.green,
  this.backgroundColor = Colors.grey,
  this.width = 50,
  this.height = 30,
});