Conversation class

Annotations
  • @freezed

Constructors

Conversation({required String id, required String type, required bool open, required bool read, required DateTime lastActivityAt, required ConversationSource source, required ConversationPart? lastRenderablePart, required List<ConversationPart>? conversationParts, required List<ConversationParticipant> participants})
const
factory
Conversation.fromJson(Map<String, Object?> json)
factory

Properties

conversationParts → List<ConversationPart>?
The full conversation
no setterinherited
copyWith → $ConversationCopyWith<Conversation>
Create a copy of Conversation with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
Conversation Id
no setterinherited
lastActivityAt → DateTime
When there was last activity
no setterinherited
lastRenderablePart → ConversationPart?
The last part in the conversation
no setterinherited
open → bool
If the conversation is open
no setterinherited
participants → List<ConversationParticipant>
The conversation participants
no setterinherited
read → bool
A new message in the conversation that has not been read
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → ConversationSource
Conversation source
no setterinherited
type → String
Conversation type
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this Conversation to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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