ChatModel class

A concrete implementation of ChatModelInterface representing a chat.

Implemented types
Implementers

Constructors

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

Properties

canBeDeleted → bool
final
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
getter/setter pairoverride-getter
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

Methods

copyWith({String? id, List<ChatMessageModel>? messages, int? unreadMessages, DateTime? lastUsed, ChatMessageModel? lastMessage, bool? canBeDeleted}) → ChatModel
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