DialogBox constructor

DialogBox({
  1. String? title,
  2. Option? button01,
  3. Option? button02,
  4. VoidCallback? press01,
  5. VoidCallback? press02,
  6. bool? switchButtons,
  7. List<Widget>? body,
  8. List<Widget>? actions,
  9. bool? barrierDismissible = false,
})

Supply the Dialog window's buttons and Callback routines.

Implementation

DialogBox({
  this.title,
  Option? button01,
  Option? button02,
  VoidCallback? press01,
  VoidCallback? press02,
  bool? switchButtons,
  this.body,
  this.actions,
  this.barrierDismissible = false,
}) {
  this.button01 = button01;
  this.button02 = button02;
  this.press01 = press01;
  this.press02 = press02;
  this.switchButtons = switchButtons;
}