deleteAttachmentsCancelable method

CancelableOperation<void> deleteAttachmentsCancelable(
  1. List<Attachment> attachments
)

Cancelable version of deleteAttachments. See that method for more information.

Implementation

CancelableOperation<void> deleteAttachmentsCancelable(
    List<Attachment> attachments) {
  final coreAttachments =
      attachments.toMutableArray(valueType: _ElementType.attachment);
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISFeature_deleteAttachments(
        _handle, coreAttachments._handle, errorHandler);
  });
  return taskHandle.toCancelableOperation((_) {});
}