CustomButton constructor

CustomButton({
  1. Key? key,
  2. required String? buttonText,
  3. Color? buttonColor,
  4. double? cornerRadius,
  5. required dynamic onClick()?,
  6. MaterialColor? textColor,
  7. double? fontSize,
  8. double? verticalPadding,
  9. double? horizontalPadding,
  10. bool? showIndicator = false,
  11. ButtonStyle? style,
})

Implementation

CustomButton(
    {
      super.key,

      required this.buttonText,
      this.buttonColor,
      this.cornerRadius,
      required this.onClick,
      this.textColor,
      this.fontSize,
      this.verticalPadding,
      this.horizontalPadding,
      this.showIndicator = false,
      this.style
    });