copyWith method

CarInstructionCrossroad copyWith({
  1. CarInstructionCrossroadDirection? direction,
  2. int? turnAngle,
  3. CarInstructionCrossroadLandmark? landmark,
  4. String? exitName,
})

Implementation

CarInstructionCrossroad copyWith({
  CarInstructionCrossroadDirection? direction,
  int? turnAngle,
  CarInstructionCrossroadLandmark? landmark,
  String? exitName
}) {
  return CarInstructionCrossroad(
    direction: direction ?? this.direction,
    turnAngle: turnAngle ?? this.turnAngle,
    landmark: landmark ?? this.landmark,
    exitName: exitName ?? this.exitName
  );
}