copyWith method

PublicTransportStop copyWith({
  1. String? name,
  2. GeoPoint? coordinates,
})

Implementation

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