copyWith method

PriceRange copyWith({
  1. Money? startPrice,
  2. Money? endPrice,
})

Implementation

PriceRange copyWith({Money? startPrice, Money? endPrice}) {
  return PriceRange(
    startPrice: startPrice ?? this.startPrice,
    endPrice: endPrice ?? this.endPrice,
  );
}