JDialogAlert constructor

const JDialogAlert({
  1. Key? key,
  2. String title = 'تنبيه',
  3. String content = '',
  4. String description = '',
  5. VoidCallback? onConfirm,
  6. VoidCallback? onCancel,
  7. String confirmText = 'موافق',
  8. String cancelText = 'إلغاء',
  9. Color colorConfirm = JColors.green,
  10. Color colorCancel = JColors.red,
  11. required int counter,
})

Implementation

const JDialogAlert({
  super.key,
  this.title = 'تنبيه',
  this.content = '',
  this.description = '',
  this.onConfirm,
  this.onCancel,
  this.confirmText = 'موافق',
  this.cancelText = 'إلغاء',
  this.colorConfirm = JColors.green,
  this.colorCancel = JColors.red,
  required this.counter,
});