copyWith method

RouteEditorRoutesInfo copyWith({
  1. List<TrafficRoute>? routes,
  2. RouteEditorRouteParams? routeParams,
})

Implementation

RouteEditorRoutesInfo copyWith({
  List<TrafficRoute>? routes,
  RouteEditorRouteParams? routeParams
}) {
  return RouteEditorRoutesInfo(
    routes: routes ?? this.routes,
    routeParams: routeParams ?? this.routeParams
  );
}