copyWith method

CarRouteSearchOptions copyWith({
  1. bool? avoidTollRoads,
  2. bool? avoidUnpavedRoads,
  3. bool? avoidFerries,
  4. bool? avoidLockedRoads,
  5. RouteSearchType? routeSearchType,
  6. List<ExcludedArea>? excludedAreas,
})

Implementation

CarRouteSearchOptions copyWith({
  bool? avoidTollRoads,
  bool? avoidUnpavedRoads,
  bool? avoidFerries,
  bool? avoidLockedRoads,
  RouteSearchType? routeSearchType,
  List<ExcludedArea>? excludedAreas
}) {
  return CarRouteSearchOptions(
    avoidTollRoads: avoidTollRoads ?? this.avoidTollRoads,
    avoidUnpavedRoads: avoidUnpavedRoads ?? this.avoidUnpavedRoads,
    avoidFerries: avoidFerries ?? this.avoidFerries,
    avoidLockedRoads: avoidLockedRoads ?? this.avoidLockedRoads,
    routeSearchType: routeSearchType ?? this.routeSearchType,
    excludedAreas: excludedAreas ?? this.excludedAreas
  );
}