MephistoSwitchWidget constructor

MephistoSwitchWidget({
  1. Key? key,
  2. required String text,
  3. required Function onClick,
  4. bool? isDisabled = false,
  5. bool? isSelected = false,
  6. bool? isDefaultSelected = false,
  7. bool showBackgroundColor = false,
  8. Widget? prefixIcon,
  9. double defaultPadding = 10.0,
})

Implementation

MephistoSwitchWidget(
    {super.key,
    required this.text,
    required this.onClick,
    this.isDisabled = false,
    this.isSelected = false,
    this.isDefaultSelected = false,
    this.showBackgroundColor = false,
    this.prefixIcon,
    this.defaultPadding = 10.0});