SwitchButton constructor

SwitchButton({
  1. required bool value,
  2. required void onChanged(
    1. bool value
    ),
  3. required String title,
  4. Color? backgroundColor,
  5. Color? buttonColor,
  6. EdgeInsets? margin,
})

Implementation

SwitchButton({
  required this.value,
  required this.onChanged,
  required this.title,
  this.backgroundColor,
  this.buttonColor,
  this.margin,
});