copyWith method
Implementation
Road copyWith({
String? direction,
num? distance,
String? id,
LatLng? latLngPoint,
String? name,
}) {
return Road(
direction: direction ?? this.direction,
distance: distance ?? this.distance,
id: id ?? this.id,
latLngPoint: latLngPoint ?? this.latLngPoint,
name: name ?? this.name,
);
}