ChatEntity constructor
ChatEntity({
- required PeerUser mainUser,
- required Map<
String, PeerUser> peers, - required ChatBackend backend,
- required String path,
- required String? title,
- required dynamic onMessageSent(
- String message,
- ChatEntity chatEntity
- bool supportMedia = false,
Creates a ChatEntity describing a chat conversation.
Implementation
ChatEntity({
required this.mainUser,
required this.peers,
required this.backend,
required this.path,
required this.title,
required this.onMessageSent,
this.supportMedia = false,
});