getConversationById method

Future<Conversation?> getConversationById(
  1. String uuid
)

Implementation

Future<Conversation?> getConversationById(String uuid) async {
  final conversations = await getConversations();
  try {
    return conversations.firstWhere((conv) => conv.uuid == uuid);
  } catch (e) {
    return null;
  }
}