ConfirmDialogWidget constructor

const ConfirmDialogWidget({
  1. Key? key,
  2. required String title,
  3. required String message,
  4. String confirmLabel = 'Confirm',
  5. String cancelLabel = 'Cancel',
  6. bool destructive = false,
})

Creates a confirmation dialog.

Implementation

const ConfirmDialogWidget({
  super.key,
  required this.title,
  required this.message,
  this.confirmLabel = 'Confirm',
  this.cancelLabel = 'Cancel',
  this.destructive = false,
});