findTemporaryConversations method

Future<List<TemporaryConversation>> findTemporaryConversations({
  1. required List<String> temporaryConversationIDs,
})

To find the TemporaryConversation by IDs.

temporaryConversationIDs should not be empty and more than 100.

Returns a List of the TemporaryConversation.

Implementation

Future<List<TemporaryConversation>> findTemporaryConversations({
  required List<String> temporaryConversationIDs,
}) async {
  if (temporaryConversationIDs.isEmpty ||
      temporaryConversationIDs.length > 100) {
    throw ArgumentError(
      'temporaryConversationIDs.length should in [1...100].',
    );
  }
  return await _find(
    temporaryConversationIDs: temporaryConversationIDs,
  );
}