attachments method

Future<List<Attachment>> attachments(
  1. DtoChatItem item
)

Fetches the Attachments of the provided item.

Implementation

Future<List<Attachment>> attachments(DtoChatItem item) async {
  Log.debug('attachments($item)', '$runtimeType');

  final response = await _graphQlProvider.attachments(item.value.id);
  return response.chatItem?.toModel() ?? [];
}