AppButton2 constructor

AppButton2({
  1. Key? key,
  2. required void onPressed(),
  3. required String text,
  4. double? width,
  5. Color backgroundColor = AppColors.blue,
  6. bool isCancelButton = false,
  7. bool isPreventMultipleCall = false,
})

Implementation

AppButton2({
  super.key,
  required this.onPressed,
  required this.text,
  this.width,
  this.backgroundColor = AppColors.blue,
  this.isCancelButton = false,
  this.isPreventMultipleCall = false, // default: allow multiple taps
});