copyWith method
CalloutMapPosition
copyWith({
- MapId? mapId,
- Optional<
GeoPoint?> ? calloutPosition, - Optional<
RoutePoint?> ? routePoint,
Implementation
CalloutMapPosition copyWith({
MapId? mapId,
Optional<GeoPoint?>? calloutPosition,
Optional<RoutePoint?>? routePoint
}) {
return CalloutMapPosition(
mapId: mapId ?? this.mapId,
calloutPosition: calloutPosition != null ? calloutPosition.value : this.calloutPosition,
routePoint: routePoint != null ? routePoint.value : this.routePoint
);
}