copyWith method

Road copyWith({
  1. String? direction,
  2. num? distance,
  3. String? id,
  4. LatLng? latLngPoint,
  5. String? name,
})

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