FastAlertDialog constructor

const FastAlertDialog({
  1. Key? key,
  2. required String titleText,
  3. Color? backgroundColor,
  4. Color? messageColor,
  5. String? messageText,
  6. String? cancelText,
  7. Color? titleColor,
  8. String? validText,
  9. VoidCallback? onCancel,
  10. List<Widget>? children,
  11. List<Widget>? actions,
  12. VoidCallback? onValid,
})

Implementation

const FastAlertDialog({
  Key? key,
  required this.titleText,
  super.backgroundColor,
  this.messageColor,
  this.messageText,
  this.cancelText,
  this.titleColor,
  this.validText,
  this.onCancel,
  this.children,
  super.actions,
  this.onValid,
})  : assert(messageText == null || children == null),
      assert(messageText != null || children != null),
      assert(actions == null || cancelText == null),
      super(key: key);