Item class

An item - message or event - that has been sent.

Constructors

Item({String? absoluteTime, List<AttachmentItem>? attachments, String? content, String? contentType, String? displayName, String? id, String? participantId, ParticipantRole? participantRole, ChatItemType? type})
Item.fromJson(Map<String, dynamic> json)
factory

Properties

absoluteTime String?
The time when the message or event was sent.
final
attachments List<AttachmentItem>?
Provides information about the attachments.
final
content String?
The content of the message or event.
final
contentType String?
The type of content of the item.
final
displayName String?
The chat display name of the sender.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
The ID of the item.
final
participantId String?
The ID of the sender in the session.
final
participantRole ParticipantRole?
The role of the sender. For example, is it a customer, agent, or system.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ChatItemType?
Type of the item: message or event.
final

Methods

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