PersonalChatModel class

Implemented types

Constructors

PersonalChatModel({required ChatUserModel user, String? id, List<ChatMessageModel>? messages = const [], int? unreadMessages, DateTime? lastUsed, ChatMessageModel? lastMessage, bool canBeDeleted = true})
Constructs a PersonalChatModel instance.

Properties

canBeDeleted → bool
final
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
getter/setter pairoverride
lastMessage → ChatMessageModel?
final
lastUsed → DateTime?
final
messages → List<ChatMessageModel>?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unreadMessages → int?
final
user → ChatUserModel
final

Methods

copyWith({String? id, List<ChatMessageModel>? messages, int? unreadMessages, DateTime? lastUsed, ChatMessageModel? lastMessage, bool? canBeDeleted, ChatUserModel? user}) → PersonalChatModel
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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