copyWith method
PublicTransportPlatformTransition
copyWith({
- DgisObjectId? routeId,
- String? routeName,
- PublicTransportRouteType? routeType,
- Optional<
int?> ? color, - DgisObjectId? stationId,
- 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
);
}