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