copyWith method

PublicTransportTransfer copyWith({
  1. String? startPointName,
  2. String? finishPointName,
  3. List<PublicRoutePart>? routeParts,
})

Implementation

PublicTransportTransfer copyWith({
  String? startPointName,
  String? finishPointName,
  List<PublicRoutePart>? routeParts
}) {
  return PublicTransportTransfer(
    startPointName: startPointName ?? this.startPointName,
    finishPointName: finishPointName ?? this.finishPointName,
    routeParts: routeParts ?? this.routeParts
  );
}