attachments method

Future<List<Attachment>> attachments(
  1. ChatItemId id
)

Fetches the Attachments of a ChatItem with the provided id.

Implementation

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

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