EnvelopeBuilder constructor

EnvelopeBuilder({
  1. SpatialReference? spatialReference,
})

Creates an envelope builder.

Parameters:

  • spatialReference — The builder's spatial reference.

Implementation

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