copyWith method

PublicTransportPlatformTransition copyWith({
  1. DgisObjectId? routeId,
  2. String? routeName,
  3. PublicTransportRouteType? routeType,
  4. Optional<int?>? color,
  5. DgisObjectId? stationId,
  6. String? stationName,
})

Implementation

PublicTransportPlatformTransition copyWith({
  DgisObjectId? routeId,
  String? routeName,
  PublicTransportRouteType? routeType,
  Optional<int?>? color,
  DgisObjectId? stationId,
  String? stationName
}) {
  return PublicTransportPlatformTransition(
    routeId: routeId ?? this.routeId,
    routeName: routeName ?? this.routeName,
    routeType: routeType ?? this.routeType,
    color: color != null ? color.value : this.color,
    stationId: stationId ?? this.stationId,
    stationName: stationName ?? this.stationName
  );
}