VTextMessage class

Inheritance

Constructors

VTextMessage({required String id, required String sIdentifier, required String senderId, required String senderName, required String senderImageThumb, required VMessageEmitStatus emitStatus, required bool isEncrypted, required String? contentTr, required String platform, required String roomId, required String content, required VMessageType messageType, required String localId, required String createdAt, required String updatedAt, required VBaseMessage? replyTo, required String? seenAt, required String? deliveredAt, required String? forwardId, required String? allDeletedAt, required String? parentBroadcastId, required bool isStared})
VTextMessage.buildFakeMessage({VMessageEmitStatus messageStatus = VMessageEmitStatus.serverConfirm})
VTextMessage.buildMessage({required String content, required bool isEncrypted, required String roomId, String? forwardId, String? broadcastId, VBaseMessage? replyTo})
VTextMessage.fromLocalMap(Map<String, dynamic> map)
VTextMessage.fromRemoteMap(Map<String, dynamic> map)

Properties

allDeletedAt String?
Time when the message was deleted from all.
getter/setter pairinherited
content String
The content of the message from the server.
finalinherited
contentTr String?
Translated content of the message.
getter/setter pairinherited
createdAt String
Time when the message was sent.
getter/setter pairinherited
createdAtDate DateTime
no setterinherited
deletedAtDate DateTime?
no setterinherited
deliveredAt String?
Time when the message was delivered.
getter/setter pairinherited
deliveredAtDate DateTime?
no setterinherited
emitStatus VMessageEmitStatus
Status of the message emit (server confirm, error, sending).
getter/setter pairinherited
forwardId String?
ID of the message that this message was forwarded from.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
id String
Unique ID of the message. This will be changed if message get from remote.
getter/setter pairinherited
isAllDeleted bool
no setterinherited
isContainReply bool
no setterinherited
isDeleted bool
If the user intends to delete this message.
getter/setter pairinherited
isEncrypted bool
If the message is encrypted.
finalinherited
isForward bool
Some Getters
no setterinherited
isFromBroadcast bool
no setterinherited
isMeSender bool
no setterinherited
isStared bool
If the message is starred.
getter/setter pairinherited
isTrans bool
no setterinherited
localId String
Unique local ID of the message. This is used to uniquely identify the message across all messages, and is useful because the server message ID will change.
getter/setter pairinherited
messageType VMessageType
Type of the message.
getter/setter pairinherited
parentBroadcastId String?
If the message was sent through broadcast, the ID of the parent broadcast.
getter/setter pairinherited
platform String
The platform through which this message was sent.
finalinherited
realContent String
no setterinherited
realContentMentionParsedWithAt String
no setterinherited
replyTo VBaseMessage?
If this message is a reply, the original message it replies to.
getter/setter pairinherited
roomId String
ID of the room where this message was sent.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seenAt String?
Time when the message was seen.
getter/setter pairinherited
seenAtDate DateTime?
no setterinherited
senderId String
ID of the sender.
getter/setter pairinherited
senderImageThumb String
Thumbnail image URL of the sender.
getter/setter pairinherited
senderName String
Name of the sender.
getter/setter pairinherited
sIdentifier String
Identifier of the message in the server.
finalinherited
updatedAt String
Time when the message was last updated.
finalinherited
updatedAtDate DateTime
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toListOfPartValue() List<PartValue>
inherited
toLocalMap() Map<String, Object?>
inherited
toRemoteMap() Map<String, Object?>
inherited
toString() String
A string representation of this object.
inherited

Operators

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