copyWith method

Crossroad copyWith({
  1. LatLng? centerPoint,
  2. String? direction,
  3. num? distance,
  4. String? firstRoadId,
  5. String? firstRoadName,
  6. String? id,
  7. num? roadWidth,
  8. String? secondRoadId,
  9. String? secondRoadName,
})

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,
  );
}