PolygonBarrier constructor

PolygonBarrier(
  1. Polygon polygon
)

Creates a polygon barrier instance.

Parameters:

  • polygon — A polygon.

Implementation

factory PolygonBarrier(
  Polygon polygon,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_PolygonBarrier_createWithPolygon(
      polygon._handle,
      errorHandler,
    );
  });
  return PolygonBarrier._withHandle(handle);
}