copyWith method

RenderedObjectInfo copyWith({
  1. ScreenPoint? closestViewportPoint,
  2. GeoPointWithElevation? closestMapPoint,
  3. RenderedObject? item,
})

Implementation

RenderedObjectInfo copyWith({
  ScreenPoint? closestViewportPoint,
  GeoPointWithElevation? closestMapPoint,
  RenderedObject? item
}) {
  return RenderedObjectInfo(
    closestViewportPoint: closestViewportPoint ?? this.closestViewportPoint,
    closestMapPoint: closestMapPoint ?? this.closestMapPoint,
    item: item ?? this.item
  );
}