fetchAttachments method

Future<List<Attachment>> fetchAttachments()

Gets a collection of attachments on this feature. Attachments are returned in descending order based on their id.

Return Value: A Future that returns a List containing Attachment types.

Implementation

Future<List<Attachment>> fetchAttachments() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISFeature_fetchAttachments(
      _handle,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (element) => element.getValueAsList()!,
  );
}