MephistoSwitchWidget constructor
MephistoSwitchWidget({ - Key? key,
- required String text,
- required Function onClick,
- bool? isDisabled = false,
- bool? isSelected = false,
- bool? isDefaultSelected = false,
- bool showBackgroundColor = false,
- Widget? prefixIcon,
- 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});