copyWith method

UserAuctionBid copyWith({
  1. int? starCount,
  2. int? bidDate,
  3. int? nextBidStarCount,
  4. MessageSender? ownerId,
  5. 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,
);