copyWith method

BicycleBriefRouteInfo copyWith({
  1. RouteDistance? length,
  2. String? landmark,
})

Implementation

BicycleBriefRouteInfo copyWith({
  RouteDistance? length,
  String? landmark
}) {
  return BicycleBriefRouteInfo(
    length: length ?? this.length,
    landmark: landmark ?? this.landmark
  );
}