copyWith method

SendGift copyWith({
  1. int? giftId,
  2. MessageSender? ownerId,
  3. FormattedText? text,
  4. bool? isPrivate,
  5. 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,
    );