CustomToggleButton constructor
const
CustomToggleButton({
- Key? key,
- Function? onPressed,
- String? text,
- TextStyle? textStyle,
- TextAlign? textAlign = TextAlign.start,
- Color? textColor,
- Color? backgroundColor,
- Color? overlayColor,
- Widget? child,
- Widget? leftIcon,
- Widget? rightIcon,
- bool disabled = false,
- EdgeInsets? margin,
- EdgeInsets? padding,
- double? height,
- double? width,
- double? elevation,
- int? flex,
- BorderRadius? borderRadius,
- BorderSide? border,
- VisualDensity? visualDensity,
- ButtonStyle? buttonStyle,
- bool isOff = false,
- bool right = true,
- Color? colorOn,
- Color? colorOff,
Implementation
const CustomToggleButton({
Key? key,
super.onPressed,
super.text,
super.textStyle,
super.textAlign = TextAlign.start,
super.textColor,
super.backgroundColor,
super.overlayColor,
super.child,
super.leftIcon,
super.rightIcon,
super.disabled = false,
super.margin,
super.padding,
super.height,
super.width,
super.elevation,
super.flex,
super.borderRadius,
super.border,
super.visualDensity,
super.buttonStyle,
this.isOff = false,
this.right = true,
this.colorOn,
this.colorOff,
}) : super(key: key);