CustomButton constructor

const CustomButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required Widget child,
  4. Color? borderColor,
  5. Color? backgroundColor,
  6. double? borderWidth,
  7. double? borderRadius,
  8. double? width,
  9. double? height,
  10. EdgeInsets? padding,
  11. EdgeInsets? margin,
  12. TextStyle? textStyle,
})

Implementation

const CustomButton({
  super.key,
  required this.onPressed,
  required this.child,
  this.borderColor,
  this.backgroundColor,
  this.borderWidth,
  this.borderRadius,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.textStyle,
});