copyWith method

Destination copyWith({
  1. PolylineDetails? geocoderStatus,
  2. List<String>? type,
  3. String? placeId,
  4. bool? partialMatch,
})

Implementation

Destination copyWith({
  PolylineDetails? geocoderStatus,
  List<String>? type,
  String? placeId,
  bool? partialMatch,
}) {
  return Destination(
    geocoderStatus: geocoderStatus ?? this.geocoderStatus,
    type: type ?? this.type,
    placeId: placeId ?? this.placeId,
    partialMatch: partialMatch ?? this.partialMatch,
  );
}