analyze static method

ChatContent analyze(
  1. List<String> chat, [
  2. List<String>? imagePaths
])

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