CustomButton constructor

const CustomButton({
  1. Key? key,
  2. bool? loading,
  3. required String title,
  4. dynamic onPressed()?,
  5. double? fontSize,
  6. double? borderRadius,
  7. double? width,
  8. double? height,
  9. String? loadingTitle,
  10. Icon? icon,
  11. Color? color,
  12. String? svg,
  13. Color? textColor,
})

Implementation

const CustomButton(
    {Key? key,
    this.loading,
    required this.title,
     this.onPressed,
    this.fontSize,
    this.borderRadius,
    this.width,
    this.height,
      this.loadingTitle,
      this.icon,
    this.color,
      this.svg,
    this.textColor})
    : super(key: key);