copyWith method

CarBriefRouteInfo copyWith({
  1. RouteDistance? length,
  2. String? landmark,
  3. 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
  );
}