copyWith method
UserAuctionBid
copyWith({
- int? starCount,
- int? bidDate,
- int? nextBidStarCount,
- MessageSender? ownerId,
- bool? wasReturned,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
UserAuctionBid copyWith({
int? starCount,
int? bidDate,
int? nextBidStarCount,
MessageSender? ownerId,
bool? wasReturned,
}) => UserAuctionBid(
starCount: starCount ?? this.starCount,
bidDate: bidDate ?? this.bidDate,
nextBidStarCount: nextBidStarCount ?? this.nextBidStarCount,
ownerId: ownerId ?? this.ownerId,
wasReturned: wasReturned ?? this.wasReturned,
);