copyWith method

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

Implementation

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