copyWith method
CarBriefRouteInfo
copyWith({
- RouteDistance? length,
- String? landmark,
- CarBriefRouteInfoTrafficSpeed? trafficSpeed,
Implementation
CarBriefRouteInfo copyWith({
RouteDistance? length,
String? landmark,
CarBriefRouteInfoTrafficSpeed? trafficSpeed
}) {
return CarBriefRouteInfo(
length: length ?? this.length,
landmark: landmark ?? this.landmark,
trafficSpeed: trafficSpeed ?? this.trafficSpeed
);
}