copyWith method

PublicTransportRouteGeometry copyWith({
  1. PolylineGeometry? line,
  2. Optional<GeoPoint?>? centroid,
})

Implementation

PublicTransportRouteGeometry copyWith({
  PolylineGeometry? line,
  Optional<GeoPoint?>? centroid
}) {
  return PublicTransportRouteGeometry(
    line: line ?? this.line,
    centroid: centroid != null ? centroid.value : this.centroid
  );
}