copyWith method

SponsoredMessage copyWith({
  1. int? messageId,
  2. bool? isRecommended,
  3. MessageContent? content,
  4. MessageSponsor? sponsor,
  5. String? additionalInfo,
})

Implementation

SponsoredMessage copyWith({
  int? messageId,
  bool? isRecommended,
  MessageContent? content,
  MessageSponsor? sponsor,
  String? additionalInfo,
}) =>
    SponsoredMessage(
      messageId: messageId ?? this.messageId,
      isRecommended: isRecommended ?? this.isRecommended,
      content: content ?? this.content,
      sponsor: sponsor ?? this.sponsor,
      additionalInfo: additionalInfo ?? this.additionalInfo,
    );