ConfirmationDialogTexts constructor

const ConfirmationDialogTexts({
  1. String? title,
  2. String? message,
  3. Widget? titleWidget,
  4. Widget? messageWidget,
  5. String? confirmButtonText,
  6. String? cancelButtonText,
})

The texts for the confirmation dialog.

Implementation

const ConfirmationDialogTexts({
  this.title,
  this.message,
  this.titleWidget,
  this.messageWidget,
  this.confirmButtonText,
  this.cancelButtonText,
})  : assert(
        (title != null && titleWidget == null) ||
            (title == null && titleWidget != null),
        "Either title or titleWidget must be provided, but not both.",
      ),
      assert(
        (message != null && messageWidget == null) ||
            (message == null && messageWidget != null) ||
            (message == null && messageWidget == null),
        "Either message or messageWidget must be provided, but not both.",
      );