CustomToggleButton constructor

const CustomToggleButton({
  1. Key? key,
  2. Function? onPressed,
  3. String? text,
  4. TextStyle? textStyle,
  5. TextAlign? textAlign = TextAlign.start,
  6. Color? textColor,
  7. Color? backgroundColor,
  8. Color? overlayColor,
  9. Widget? child,
  10. Widget? leftIcon,
  11. Widget? rightIcon,
  12. bool disabled = false,
  13. EdgeInsets? margin,
  14. EdgeInsets? padding,
  15. double? height,
  16. double? width,
  17. double? elevation,
  18. int? flex,
  19. BorderRadius? borderRadius,
  20. BorderSide? border,
  21. VisualDensity? visualDensity,
  22. ButtonStyle? buttonStyle,
  23. bool isOff = false,
  24. bool right = true,
  25. Color? colorOn,
  26. 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);