copyWith method
GiveawayInfoOngoing
copyWith({
- int? creationDate,
- GiveawayParticipantStatus? status,
- bool? isEnded,
- dynamic extra,
- 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
GiveawayInfoOngoing copyWith({
int? creationDate,
GiveawayParticipantStatus? status,
bool? isEnded,
dynamic extra,
int? clientId,
}) => GiveawayInfoOngoing(
creationDate: creationDate ?? this.creationDate,
status: status ?? this.status,
isEnded: isEnded ?? this.isEnded,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);