Button constructor

const Button(
  1. String data, {
  2. Key? key,
  3. Color? textColor,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. double? width,
  7. double? height,
  8. EdgeInsetsGeometry? padding,
  9. EdgeInsetsGeometry? margin,
  10. Color? backgroundColor,
  11. BoxBorder? border,
  12. double? borderRadius,
  13. VoidCallback? onTap,
  14. VoidCallback? onLongPress,
  15. VoidCallback? onDoubleTap,
})

Implementation

const Button(
  this.data, {
  super.key,
  this.textColor,
  this.fontSize,
  this.fontWeight,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.backgroundColor,
  this.border,
  this.borderRadius,
  this.onTap,
  this.onLongPress,
  this.onDoubleTap,
});