copyWith method

RouteEditorRouteParams copyWith({
  1. RouteSearchPoint? startPoint,
  2. RouteSearchPoint? finishPoint,
  3. RouteSearchOptions? routeSearchOptions,
  4. List<RouteSearchPoint>? intermediatePoints,
})

Implementation

RouteEditorRouteParams copyWith({
  RouteSearchPoint? startPoint,
  RouteSearchPoint? finishPoint,
  RouteSearchOptions? routeSearchOptions,
  List<RouteSearchPoint>? intermediatePoints
}) {
  return RouteEditorRouteParams(
    startPoint: startPoint ?? this.startPoint,
    finishPoint: finishPoint ?? this.finishPoint,
    routeSearchOptions: routeSearchOptions ?? this.routeSearchOptions,
    intermediatePoints: intermediatePoints ?? this.intermediatePoints
  );
}