setFacilities method

void setFacilities(
  1. List<Facility> facilities
)

Sets facilities.

The set of facilities loaded as network locations during analysis.

Parameters:

Implementation

void setFacilities(
  List<Facility> facilities,
) {
  final coreFacilities = facilities.toMutableArray(
    valueType: _ElementType.facility,
  );
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ClosestFacilityParameters_setFacilities(
      _handle,
      coreFacilities._handle,
      errorHandler,
    );
  });
}