copyWith method
TrafficLineModel
copyWith({
- double? routeProgress,
- double? routePosition()?,
- double? routeLength,
- List<
GeoPointRouteEntry> ? intermediatePoints, - List<
TrafficSpeedColorRouteLongEntry> ? speedColors, - List<
RoadEventRouteEntry> ? roadEvents,
Implementation
TrafficLineModel copyWith({
double? routeProgress,
double? Function()? routePosition,
double? routeLength,
List<sdk.GeoPointRouteEntry>? intermediatePoints,
List<sdk.TrafficSpeedColorRouteLongEntry>? speedColors,
List<sdk.RoadEventRouteEntry>? roadEvents,
}) {
return TrafficLineModel(
routeLength: routeLength ?? this.routeLength,
routeProgress: routeProgress ?? this.routeProgress,
routePosition:
routePosition != null ? routePosition() : this.routePosition,
intermediatePoints: intermediatePoints ?? this.intermediatePoints,
speedColors: speedColors ?? this.speedColors,
roadEvents: roadEvents ?? this.roadEvents,
);
}