MutablePartCollection constructor

MutablePartCollection({
  1. SpatialReference? spatialReference,
})

Creates a mutable part collection with a specified spatial reference.

Parameters:

  • spatialReference — A spatial reference object, can be null.

Implementation

factory MutablePartCollection({
  SpatialReference? spatialReference,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MutablePartCollection_createWithSpatialReference(
      spatialReference?._handle ?? ffi.nullptr,
      errorHandler,
    );
  });
  final MutablePartCollection object =
      MutablePartCollection._withHandle(handle);
  object._spatialReference.cache(spatialReference);
  return object;
}