copyWith method
UpgradedGiftOriginalDetails
copyWith({
- MessageSender? senderId()?,
- MessageSender? receiverId,
- FormattedText? text,
- int? date,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
UpgradedGiftOriginalDetails copyWith({
MessageSender? Function()? senderId,
MessageSender? receiverId,
FormattedText? text,
int? date,
}) => UpgradedGiftOriginalDetails(
senderId: senderId != null ? senderId() : this.senderId,
receiverId: receiverId ?? this.receiverId,
text: text ?? this.text,
date: date ?? this.date,
);