copyWith method

Notification copyWith({
  1. String? htmlBody,
  2. NotificationRecipientsRestrictions? restrict,
  3. String? subject,
  4. String? textBody,
  5. NotificationRecipients? to,
})

Implementation

Notification copyWith(
    {String? htmlBody,
    NotificationRecipientsRestrictions? restrict,
    String? subject,
    String? textBody,
    NotificationRecipients? to}) {
  return Notification(
    htmlBody: htmlBody ?? this.htmlBody,
    restrict: restrict ?? this.restrict,
    subject: subject ?? this.subject,
    textBody: textBody ?? this.textBody,
    to: to ?? this.to,
  );
}