ServiceAreaTask.withDataset constructor

ServiceAreaTask.withDataset(
  1. TransportationNetworkDataset dataset
)

Creates a service area task with transportation network dataset.

Parameters:

  • dataset — A transportation network dataset.

Implementation

factory ServiceAreaTask.withDataset(TransportationNetworkDataset dataset) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceAreaTask_createWithDataset(
        dataset._handle, errorHandler);
  });
  return ServiceAreaTask._withHandle(handle);
}