copyWith method

  1. @override
GiveawayInfoOngoing copyWith({
  1. int? creationDate,
  2. GiveawayParticipantStatus? status,
  3. bool? isEnded,
  4. dynamic extra,
  5. 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,
);