MyButton constructor
MyButton({
- Key? key,
- required String text,
- double? textFont,
- FontWeight? textFontWeight,
- Color? textColor,
- Color? buttonColor,
- double? buttonHeight,
- double? buttonWidth,
- double? buttonCircularRadius,
- bool? addShadow,
- BoxBorder? border,
- Gradient? gradient,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- void onTap()?,
- void onDoubleTap()?,
- void onHover()?,
- void onLongPress()?,
- 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,
});