SwitchButton constructor

SwitchButton({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool> onChanged,
  4. bool enabled = true,
  5. Size size = const Size(42, 26),
  6. Color? borderColor,
})

Implementation

SwitchButton({
  Key? key,
  required this.value,
  required this.onChanged,
  this.enabled = true,
  this.size = const Size(42, 26),
  this.borderColor,
}) : super(key: key);