deleteAttachments method

Future<void> deleteAttachments(
  1. List<Attachment> attachments
)

Deletes the given attachments from this feature.

Parameters:

Return Value: A Future that has no return value.

Implementation

Future<void> deleteAttachments(
  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.toFuture(
    (_) {},
  );
}