CustomSwitchButton constructor
const
CustomSwitchButton({
- Key? key,
- required bool value,
- required ValueChanged<
bool> ? onChanged, - String? activeText,
- String? inactiveText,
- Color? activeColor,
- Color? inactiveColor,
- Color? thumbColor,
- double? width,
- double? height,
- double? borderRadius,
- bool showLabel = true,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- bool isDisabled = false,
Implementation
const CustomSwitchButton({
super.key,
required this.value,
required this.onChanged,
this.activeText,
this.inactiveText,
this.activeColor,
this.inactiveColor,
this.thumbColor,
this.width,
this.height,
this.borderRadius,
this.showLabel = true,
this.margin,
this.padding,
this.isDisabled = false,
});