setPolylineBarriers method

void setPolylineBarriers(
  1. {required List<PolylineBarrier> lineBarriers}
)

Sets polyline barriers.

Parameters:

Implementation

void setPolylineBarriers({required List<PolylineBarrier> lineBarriers}) {
  final coreLineBarriers =
      lineBarriers.toMutableArray(valueType: _ElementType.polylineBarrier);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ServiceAreaParameters_setPolylineBarriers(
        _handle, coreLineBarriers._handle, errorHandler);
  });
}