ConversationModel class

Constructors

ConversationModel({required String chatRoomId, required String lastMessage, required List userIds, required Timestamp lastMessageTime, required List<ChatUserModel> users, required String lastMessageSenderId, required int unreadMessageCount, required bool isRequestSent})
ConversationModel.fromMap(Map<String, dynamic> map)
factory

Properties

chatRoomId String
getter/setter pair
currentUser ChatUserModel
no setter
hashCode int
The hash code for this object.
no setterinherited
isLastMessageMine bool
no setter
isRequestSent bool
getter/setter pair
lastMessage String
getter/setter pair
lastMessageTime ↔ Timestamp
getter/setter pair
otherUser ChatUserModel
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unreadMessageCount int
no setter

Methods

copyWith({String? chatRoomId, String? lastMessage, List? userIds, Timestamp? lastMessageTime, List<ChatUserModel>? users, String? lastMessageSenderId, int? unreadMessageCount, bool? isRequestSent}) ConversationModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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