analyze static method
Analyze List<String> to ChatContent
Implementation
static ChatContent analyze(List<String> chat, [List<String>? imagePaths]) {
String chatName = _getChatName(chat.first);
ChatContent chatInfo = ChatInfoUtilities.getChatInfo(chat);
return ChatContent(
members: chatInfo.members,
messages: chatInfo.messages,
sizeOfChat: chatInfo.sizeOfChat,
indexesPerMember: chatInfo.indexesPerMember,
msgsPerMember: chatInfo.msgsPerMember,
imagesPaths: imagePaths,
chatName: chatName,
);
}