ConfirmDialog constructor

const ConfirmDialog({
  1. required String title,
  2. required String message,
  3. String confirmText = 'Confirm',
  4. String cancelText = 'Cancel',
  5. void onConfirm()?,
  6. void onCancel()?,
  7. bool destructive = false,
  8. Component? icon,
  9. Key? key,
})

Implementation

const ConfirmDialog({
  required this.title,
  required this.message,
  this.confirmText = 'Confirm',
  this.cancelText = 'Cancel',
  this.onConfirm,
  this.onCancel,
  this.destructive = false,
  this.icon,
  super.key,
});