DialogAction constructor

const DialogAction({
  1. Key? key,
  2. required String title,
  3. required String message,
  4. required VoidCallback onPressedOk,
  5. required VoidCallback onPressCancel,
  6. String okText = 'Ok',
  7. String cancelText = 'Close',
  8. Color color = Colors.blue,
})

Implementation

const DialogAction({
  super.key,
  required this.title,
  required this.message,
  required this.onPressedOk,
  required this.onPressCancel,
  this.okText = 'Ok',
  this.cancelText = 'Close',
  this.color = Colors.blue,
});