copyWith method
SendGift
copyWith({
- int? giftId,
- MessageSender? ownerId,
- FormattedText? text,
- bool? isPrivate,
- bool? payForUpgrade,
Implementation
SendGift copyWith({
int? giftId,
MessageSender? ownerId,
FormattedText? text,
bool? isPrivate,
bool? payForUpgrade,
}) => SendGift(
giftId: giftId ?? this.giftId,
ownerId: ownerId ?? this.ownerId,
text: text ?? this.text,
isPrivate: isPrivate ?? this.isPrivate,
payForUpgrade: payForUpgrade ?? this.payForUpgrade,
);