cardBannerButton method

Widget cardBannerButton (
  1. {Color buttonColor = Colors.red,
  2. double buttonWidth = 150,
  3. double buttonHeight = 30,
  4. double rounded,
  5. Function onTap}
)

Implementation

Widget cardBannerButton(
    {Color buttonColor = Colors.red,
    double buttonWidth = 150,
    double buttonHeight = 30,
    double rounded,
    Function onTap}) {
  return MaterialXButton(
    color: buttonColor,
    width: buttonWidth,
    height: buttonHeight,
    onTap: onTap,
    rounded: rounded,
    child: this,
  );
}