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