FastAlertDialog constructor

const FastAlertDialog({
  1. Key? key,
  2. String? titleText,
  3. Color? backgroundColor,
  4. String? alternativeText,
  5. VoidCallback? onAlternative,
  6. Color? messageColor,
  7. String? messageText,
  8. String? cancelText,
  9. Color? titleColor,
  10. String? validText,
  11. VoidCallback? onCancel,
  12. List<Widget>? children,
  13. List<Widget>? actions,
  14. VoidCallback? onValid,
  15. bool? showCancel,
  16. bool? showValid,
  17. bool? showAlternative,
})

Implementation

const FastAlertDialog({
  super.key,
  this.titleText,
  super.backgroundColor,
  this.alternativeText,
  this.onAlternative,
  this.messageColor,
  this.messageText,
  this.cancelText,
  this.titleColor,
  this.validText,
  this.onCancel,
  this.children,
  super.actions,
  this.onValid,
  bool? showCancel,
  bool? showValid,
  bool? showAlternative,
})  : assert(messageText == null || children == null),
      assert(messageText != null || children != null),
      showAlternative = showAlternative ?? false,
      showValid = showValid ?? true,
      showCancel = showCancel ?? false;