copyWith method

SendGiftPurchaseOffer copyWith({
  1. MessageSender? ownerId,
  2. String? giftName,
  3. GiftResalePrice? price,
  4. int? duration,
  5. int? paidMessageStarCount,
})

Implementation

SendGiftPurchaseOffer copyWith({
  MessageSender? ownerId,
  String? giftName,
  GiftResalePrice? price,
  int? duration,
  int? paidMessageStarCount,
}) =>
    SendGiftPurchaseOffer(
      ownerId: ownerId ?? this.ownerId,
      giftName: giftName ?? this.giftName,
      price: price ?? this.price,
      duration: duration ?? this.duration,
      paidMessageStarCount: paidMessageStarCount ?? this.paidMessageStarCount,
    );