findTemporaryConversations method
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,
);
}