copyWith method

RoadInter copyWith({
  1. String? direction,
  2. String? distance,
  3. String? location,
  4. String? firstId,
  5. String? firstName,
  6. String? secondId,
  7. String? secondName,
})

Implementation

RoadInter copyWith({
  String? direction,
  String? distance,
  String? location,
  String? firstId,
  String? firstName,
  String? secondId,
  String? secondName,
}) {
  return RoadInter(
    direction: direction ?? this.direction,
    distance: distance ?? this.distance,
    location: location ?? this.location,
    firstId: firstId ?? this.firstId,
    firstName: firstName ?? this.firstName,
    secondId: secondId ?? this.secondId,
    secondName: secondName ?? this.secondName,
  );
}