CustomDialog constructor
const
CustomDialog({
- Key? key,
- required CustomDialogType dialogType,
- required String title,
- required String description,
- required VoidCallback onConfirm,
- VoidCallback? onCancel,
- String confirmButtonText = 'Confirm',
- String cancelButtonText = 'Cancel',
- bool rounded = true,
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,
});