ErrorDialog constructor
- Key? key,
- required String message,
- String title = 'Error!',
- String okButtonText = 'OK',
- bool showCancelButton = false,
- String cancelButtonText = 'Cancel',
- VoidCallback? onOk,
- VoidCallback? onCancel,
Implementation
const ErrorDialog({
super.key,
required this.message,
this.title = 'Error!',
this.okButtonText = 'OK',
this.showCancelButton = false,
this.cancelButtonText = 'Cancel',
this.onOk,
this.onCancel,
});