copyWith method

FuelPrice copyWith({
  1. FuelType? type,
  2. Money? price,
  3. DateTime? updateTime,
})

Implementation

FuelPrice copyWith({FuelType? type, Money? price, DateTime? updateTime}) {
  return FuelPrice(
    type: type ?? this.type,
    price: price ?? this.price,
    updateTime: updateTime ?? this.updateTime,
  );
}