copyWith method
Implementation
Crossroad copyWith({
LatLng? centerPoint,
String? direction,
num? distance,
String? firstRoadId,
String? firstRoadName,
String? id,
num? roadWidth,
String? secondRoadId,
String? secondRoadName,
}) {
return Crossroad(
centerPoint: centerPoint ?? this.centerPoint,
direction: direction ?? this.direction,
distance: distance ?? this.distance,
firstRoadId: firstRoadId ?? this.firstRoadId,
firstRoadName: firstRoadName ?? this.firstRoadName,
id: id ?? this.id,
roadWidth: roadWidth ?? this.roadWidth,
secondRoadId: secondRoadId ?? this.secondRoadId,
secondRoadName: secondRoadName ?? this.secondRoadName,
);
}