copyWith method

BuyGiftUpgrade copyWith({
  1. MessageSender? ownerId,
  2. String? prepaidUpgradeHash,
  3. int? starCount,
})

Implementation

BuyGiftUpgrade copyWith({
  MessageSender? ownerId,
  String? prepaidUpgradeHash,
  int? starCount,
}) => BuyGiftUpgrade(
  ownerId: ownerId ?? this.ownerId,
  prepaidUpgradeHash: prepaidUpgradeHash ?? this.prepaidUpgradeHash,
  starCount: starCount ?? this.starCount,
);