copyWith method
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,
})
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,
);