CustomDialog constructor

const CustomDialog({
  1. Key? key,
  2. required CustomDialogType dialogType,
  3. required String title,
  4. required String description,
  5. required VoidCallback onConfirm,
  6. VoidCallback? onCancel,
  7. String confirmButtonText = 'Confirm',
  8. String cancelButtonText = 'Cancel',
  9. bool rounded = true,
  10. Color? iconColor,
  11. Color? confirmButtonColor,
  12. Color? cancelButtonColor,
})

Implementation

const CustomDialog({
  super.key,
  required this.dialogType,
  required this.title,
  required this.description,
  required this.onConfirm,
  this.onCancel,
  this.confirmButtonText = 'Confirm',
  this.cancelButtonText = 'Cancel',
  this.rounded = true,
  this.iconColor,
  this.confirmButtonColor,
  this.cancelButtonColor,
});