createDefaultParameters method

Future<ServiceAreaParameters> createDefaultParameters()

Creates default parameters.

Retrieves the default parameters as defined by the service.

Return Value: A Future that returns a ServiceAreaParameters type.

Implementation

Future<ServiceAreaParameters> createDefaultParameters() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceAreaTask_createDefaultParametersAsync(
      _handle,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (element) => element.getValueAsServiceAreaParameters()!,
  );
}