MyButton constructor

MyButton({
  1. Key? key,
  2. required String text,
  3. double? textFont,
  4. FontWeight? textFontWeight,
  5. Color? textColor,
  6. Color? buttonColor,
  7. double? buttonHeight,
  8. double? buttonWidth,
  9. double? buttonCircularRadius,
  10. bool? addShadow,
  11. BoxBorder? border,
  12. Gradient? gradient,
  13. EdgeInsetsGeometry? margin,
  14. EdgeInsetsGeometry? padding,
  15. void onTap()?,
  16. void onDoubleTap()?,
  17. void onHover(
    1. bool
    )?,
  18. void onLongPress()?,
  19. String? textFontFamily,
})

Implementation

MyButton(
    {super.key,
    required this.text,
    this.textFont,
    this.textFontWeight,
    this.textColor,
    this.buttonColor,
    this.buttonHeight,
    this.buttonWidth,
    this.buttonCircularRadius,
    this.addShadow,
    this.border,
    this.gradient,
    this.margin,
    this.padding,
    this.onTap,
    this.onDoubleTap,
    this.onHover,
    this.onLongPress,
    this.textFontFamily,
    });