copyWith method
CarRouteSearchOptions
copyWith({
- bool? avoidTollRoads,
- bool? avoidUnpavedRoads,
- bool? avoidFerries,
- bool? avoidLockedRoads,
- RouteSearchType? routeSearchType,
- 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
);
}