setPolygonBarriers method
- List<
PolygonBarrier> polygonBarriers
Sets polygon barriers.
Parameters:
polygonBarriers
— A List of PolygonBarrier instances. Contents of the List are copied.
Implementation
void setPolygonBarriers(
List<PolygonBarrier> polygonBarriers,
) {
final corePolygonBarriers = polygonBarriers.toMutableArray(
valueType: _ElementType.polygonBarrier,
);
_withThrowingErrorHandler((errorHandler) {
runtimecore.RT_ClosestFacilityParameters_setPolygonBarriers(
_handle,
corePolygonBarriers._handle,
errorHandler,
);
});
}