copyWith method

ScooterRouteSearchOptions copyWith({
  1. bool? avoidCarRoads,
  2. bool? avoidStairways,
  3. bool? avoidUnderpassesAndOverpasses,
  4. List<ExcludedArea>? excludedAreas,
})

Implementation

ScooterRouteSearchOptions copyWith({
  bool? avoidCarRoads,
  bool? avoidStairways,
  bool? avoidUnderpassesAndOverpasses,
  List<ExcludedArea>? excludedAreas
}) {
  return ScooterRouteSearchOptions(
    avoidCarRoads: avoidCarRoads ?? this.avoidCarRoads,
    avoidStairways: avoidStairways ?? this.avoidStairways,
    avoidUnderpassesAndOverpasses: avoidUnderpassesAndOverpasses ?? this.avoidUnderpassesAndOverpasses,
    excludedAreas: excludedAreas ?? this.excludedAreas
  );
}