ConfirmationDialog constructor

const ConfirmationDialog({
  1. Key? key,
  2. required String title,
  3. required String message,
  4. required VoidCallback onConfirm,
  5. String confirmText = 'Confirm',
  6. String cancelText = 'Cancel',
  7. Color confirmColor = Colors.red,
})

Implementation

const ConfirmationDialog({
  super.key,
  required this.title,
  required this.message,
  required this.onConfirm,
  this.confirmText = 'Confirm',
  this.cancelText = 'Cancel',
  this.confirmColor = Colors.red,
});