CommonButton constructor

const CommonButton(
  1. String title,
  2. dynamic onTap(), {
  3. Key? key,
  4. double? border,
  5. Color? color,
  6. double? height,
  7. double? width,
  8. bool removePadding = false,
  9. double? fontSize,
  10. Color? textColor,
  11. Widget? leading,
})

Implementation

const CommonButton(
  this.title,
  this.onTap, {
  Key? key,
  this.border,
  this.color,
  this.height,
  this.width,
  this.removePadding = false,
  this.fontSize,
  this.textColor,
  this.leading,
}) : super(key: key);