setPolygonBarriers method

void setPolygonBarriers(
  1. List<PolygonBarrier> polygonBarriers
)

Sets polygon barriers.

Parameters:

Implementation

void setPolygonBarriers(List<PolygonBarrier> polygonBarriers) {
  final corePolygonBarriers =
      polygonBarriers.toMutableArray(valueType: _ElementType.polygonBarrier);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ClosestFacilityParameters_setPolygonBarriers(
        _handle, corePolygonBarriers._handle, errorHandler);
  });
}