copyWith method

  1. @override
GiveawayInfoCompleted copyWith({
  1. int? creationDate,
  2. int? actualWinnersSelectionDate,
  3. bool? wasRefunded,
  4. bool? isWinner,
  5. int? winnerCount,
  6. int? activationCount,
  7. String? giftCode,
  8. int? wonStarCount,
  9. dynamic extra,
  10. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
GiveawayInfoCompleted copyWith({
  int? creationDate,
  int? actualWinnersSelectionDate,
  bool? wasRefunded,
  bool? isWinner,
  int? winnerCount,
  int? activationCount,
  String? giftCode,
  int? wonStarCount,
  dynamic extra,
  int? clientId,
}) => GiveawayInfoCompleted(
  creationDate: creationDate ?? this.creationDate,
  actualWinnersSelectionDate:
      actualWinnersSelectionDate ?? this.actualWinnersSelectionDate,
  wasRefunded: wasRefunded ?? this.wasRefunded,
  isWinner: isWinner ?? this.isWinner,
  winnerCount: winnerCount ?? this.winnerCount,
  activationCount: activationCount ?? this.activationCount,
  giftCode: giftCode ?? this.giftCode,
  wonStarCount: wonStarCount ?? this.wonStarCount,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);