copyWith method

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

Implementation

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