copyWith method

CalloutMapPosition copyWith({
  1. MapId? mapId,
  2. Optional<GeoPoint?>? calloutPosition,
  3. 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
  );
}