copyWith method
Implementation
PublicTransportStop copyWith({
String? name,
GeoPoint? coordinates
}) {
return PublicTransportStop(
name: name ?? this.name,
coordinates: coordinates ?? this.coordinates
);
}
PublicTransportStop copyWith({
String? name,
GeoPoint? coordinates
}) {
return PublicTransportStop(
name: name ?? this.name,
coordinates: coordinates ?? this.coordinates
);
}