copyWith method

  1. @override
PremiumGiveawayInfoCompleted copyWith({
  1. int? creationDate,
  2. int? actualWinnersSelectionDate,
  3. bool? wasRefunded,
  4. int? winnerCount,
  5. int? activationCount,
  6. String? giftCode,
  7. dynamic extra,
  8. 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
PremiumGiveawayInfoCompleted copyWith({
  int? creationDate,
  int? actualWinnersSelectionDate,
  bool? wasRefunded,
  int? winnerCount,
  int? activationCount,
  String? giftCode,
  dynamic extra,
  int? clientId,
}) =>
    PremiumGiveawayInfoCompleted(
      creationDate: creationDate ?? this.creationDate,
      actualWinnersSelectionDate:
          actualWinnersSelectionDate ?? this.actualWinnersSelectionDate,
      wasRefunded: wasRefunded ?? this.wasRefunded,
      winnerCount: winnerCount ?? this.winnerCount,
      activationCount: activationCount ?? this.activationCount,
      giftCode: giftCode ?? this.giftCode,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );