DialogConfirm constructor

const DialogConfirm({
  1. Key? key,
  2. required String title,
  3. bool destructive = false,
  4. String? description,
  5. Widget descriptionWidget = const SizedBox.shrink(),
  6. String confirmText = "Confirm",
  7. String cancelText = "Cancel",
  8. List<Widget>? actions,
  9. required VoidCallback onConfirm,
})

Implementation

const DialogConfirm(
    {super.key,
    required this.title,
    this.destructive = false,
    this.description,
    this.descriptionWidget = const SizedBox.shrink(),
    this.confirmText = "Confirm",
    this.cancelText = "Cancel",
    this.actions,
    required this.onConfirm});