copyWith method

DynamicRouteInfo copyWith({
  1. RoadEventRouteAttribute? roadEvents,
  2. Traffic? traffic,
})

Implementation

DynamicRouteInfo copyWith({
  RoadEventRouteAttribute? roadEvents,
  Traffic? traffic
}) {
  return DynamicRouteInfo(
    roadEvents: roadEvents ?? this.roadEvents,
    traffic: traffic ?? this.traffic
  );
}