PolygonBarrier constructor

PolygonBarrier(
  1. {required Polygon polygon}
)

Creates a polygon barrier instance.

Parameters:

  • polygon — A polygon.

Implementation

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