copyWith method

AuctionStateActive copyWith({
  1. int? startDate,
  2. int? endDate,
  3. int? minBid,
  4. List<AuctionBid>? bidLevels,
  5. List<int>? topBidderUserIds,
  6. List<AuctionRound>? rounds,
  7. int? currentRoundEndDate,
  8. int? currentRoundNumber,
  9. int? totalRoundCount,
  10. int? distributedItemCount,
  11. int? leftItemCount,
  12. int? acquiredItemCount,
  13. UserAuctionBid? userBid,
})

Implementation

AuctionStateActive copyWith({
  int? startDate,
  int? endDate,
  int? minBid,
  List<AuctionBid>? bidLevels,
  List<int>? topBidderUserIds,
  List<AuctionRound>? rounds,
  int? currentRoundEndDate,
  int? currentRoundNumber,
  int? totalRoundCount,
  int? distributedItemCount,
  int? leftItemCount,
  int? acquiredItemCount,
  UserAuctionBid? userBid,
}) => AuctionStateActive(
  startDate: startDate ?? this.startDate,
  endDate: endDate ?? this.endDate,
  minBid: minBid ?? this.minBid,
  bidLevels: bidLevels ?? this.bidLevels,
  topBidderUserIds: topBidderUserIds ?? this.topBidderUserIds,
  rounds: rounds ?? this.rounds,
  currentRoundEndDate: currentRoundEndDate ?? this.currentRoundEndDate,
  currentRoundNumber: currentRoundNumber ?? this.currentRoundNumber,
  totalRoundCount: totalRoundCount ?? this.totalRoundCount,
  distributedItemCount: distributedItemCount ?? this.distributedItemCount,
  leftItemCount: leftItemCount ?? this.leftItemCount,
  acquiredItemCount: acquiredItemCount ?? this.acquiredItemCount,
  userBid: userBid ?? this.userBid,
);