BaseDialog constructor

const BaseDialog({
  1. Key? key,
  2. String? title,
  3. VoidCallback? onClick1,
  4. VoidCallback? onClick2,
  5. bool onlyOneButton = true,
  6. bool hiddenTitle = false,
  7. Widget? bottomChild,
  8. TextStyle? titleStyle = const TextStyle(),
  9. required Widget child,
  10. Widget? button1,
  11. Widget? button2,
  12. String? button1Text,
  13. String? button2Text,
  14. double? width,
})

Implementation

const BaseDialog({
  Key? key,
  this.title,
  this.onClick1,
  this.onClick2,
  this.onlyOneButton = true,
  this.hiddenTitle = false,
  this.bottomChild,
  this.titleStyle = const TextStyle(),
  required this.child,
  this.button1,
  this.button2,
  this.button1Text,
  this.button2Text,
  this.width,
}) : super(key: key);