HoverCallToActionButton constructor

HoverCallToActionButton({
  1. required String text,
  2. Color? color,
  3. Color? textColor,
  4. double? letterSpacing,
  5. FontWeight? fontWeight = FontWeight.bold,
  6. double? cornerRadius,
  7. double? horizontalPadding,
  8. double? verticalPadding,
  9. double? margin,
  10. double? maxWidth,
  11. TextAlign? textAlign = TextAlign.center,
  12. required dynamic onPressed()?,
})

Implementation

HoverCallToActionButton({
  required String text,
  Color? color,
  Color? textColor,
  double? letterSpacing,
  FontWeight? fontWeight = FontWeight.bold,
  double? cornerRadius,
  double? horizontalPadding,
  double? verticalPadding,
  double? margin,
  double? maxWidth,
  TextAlign? textAlign = TextAlign.center,
  required Function()? onPressed,
}) : super(
        child: CustomButtonText(
          text: text,
          textColor: textColor,
          fontWeight: fontWeight,
          letterSpacing: letterSpacing,
        ),
        color: color,
        onPressed: onPressed,
        cornerRadius: cornerRadius,
        horizontalPadding: horizontalPadding,
        verticalPadding: verticalPadding,
        margin: margin,
        maxWidth: maxWidth,
      );