createDefaultParameters method
Creates default parameters.
Retrieves the default parameters as defined by the service.
Return Value: A Future that returns a ClosestFacilityParameters type.
Implementation
Future<ClosestFacilityParameters> createDefaultParameters() {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ClosestFacilityTask_createDefaultParametersAsync(
_handle,
errorHandler,
);
});
return taskHandle.toFuture(
(element) => element.getValueAsClosestFacilityParameters()!,
);
}