ErrorDialog constructor

const ErrorDialog({
  1. Key? key,
  2. required String message,
  3. String title = 'Error!',
  4. String okButtonText = 'OK',
  5. bool showCancelButton = false,
  6. String cancelButtonText = 'Cancel',
  7. VoidCallback? onOk,
  8. 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,
});