copyWith method
SponsoredMessage
copyWith({
- int? messageId,
- bool? isRecommended,
- MessageContent? content,
- MessageSponsor? sponsor,
- 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,
);