ChatContent class

Class for the whole settings of the chat chatName - name of the chat members - list of members of the chat messages - list of MessageContent in the chat sizeOfChat - size of the chat msgsPerMember - number of messages per member indexesPerMember - list of indexes of messages per member imagesPaths - If you chose to export WhatsApp chat with media, this list will contain the paths of the images

Constructors

ChatContent({required List<String> members, required List<MessageContent> messages, required int sizeOfChat, required String chatName, required Map<String, int> msgsPerMember, required Map<String, List<int>> indexesPerMember, List<String>? imagesPaths})

Properties

chatName String
final
hashCode int
The hash code for this object.
no setteroverride
imagesPaths List<String>?
final
indexesPerMember Map<String, List<int>>
final
members List<String>
final
messages List<MessageContent>
final
msgsPerMember Map<String, int>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeOfChat int
final

Methods

getImage(String imageName) Future<Image?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(Map<String, dynamic> chatMap) ChatContent
getImageByPath(String path) Future<Image?>