copyWith method

FuelOptions copyWith({
  1. List<FuelPrice>? fuelPrices,
})

Implementation

FuelOptions copyWith({List<FuelPrice>? fuelPrices}) {
  return FuelOptions(
    fuelPrices:
        ((fuelPrices?.isNotEmpty ?? false) ? fuelPrices : null) ??
        this.fuelPrices,
  );
}