TranslatedMessage class

A translated message It has an additional property called i18n

Inheritance
Annotations

Constructors

TranslatedMessage(Map<String, String> i18n)
Constructor used for json serialization
TranslatedMessage.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

attachments List<Attachment>
The list of attachments, either provided by the user or generated from a command or as a result of URL scraping.
@JsonKey(includeIfNull: false), final, inherited
command String
A used command name.
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
createdAt DateTime
Reserved field indicating when the message was created.
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
deletedAt DateTime
Reserved field indicating when the message was deleted.
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
extraData Map<String, dynamic>
Message custom extraData
@JsonKey(includeIfNull: false), final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
i18n Map<String, String>
A Map of
final
id String
The message ID. This is either created by Stream or set client side when the message is added.
final, inherited
isDeleted bool
True if the message has been deleted
read-only, inherited
isEphemeral bool
True if the message is ephemeral
read-only, inherited
isSystem bool
True if the message is a system info
read-only, inherited
latestReactions List<Reaction>
The latest reactions to the message created by any user.
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
mentionedUsers List<User>
The list of user mentioned in the message
@JsonKey(toJson: Serialization.userIds), final, inherited
ownReactions List<Reaction>
The reactions added to the message by the current user.
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
parentId String
The ID of the parent message, if the message is a thread reply.
final, inherited
pinExpires DateTime
Reserved field indicating when the message will expire [...]
final, inherited
pinned bool
If true the message is pinned
final, inherited
pinnedAt DateTime
Reserved field indicating when the message was pinned
@JsonKey(toJson: Serialization.readOnly), final, inherited
pinnedBy User
Reserved field indicating who pinned the message
@JsonKey(toJson: Serialization.readOnly), final, inherited
quotedMessage Message
A quoted reply message
@JsonKey(toJson: Serialization.readOnly), final, inherited
quotedMessageId String
The ID of the quoted message, if the message is a quoted reply.
final, inherited
reactionCounts Map<String, int>
A map describing the count of number of every reaction
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
reactionScores Map<String, int>
A map describing the count of score of every reaction
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
replyCount int
Reserved field indicating the number of replies for this message.
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shadowed bool
If true the message is shadowed
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
showInChannel bool
Check if this message needs to show in the channel.
final, inherited
silent bool
If true the message is silent
final, inherited
skipPush bool
If true the message will not send a push notification
final, inherited
status MessageSendingStatus
The status of a sending message
@JsonKey(ignore: true), final, inherited
text String
The text of this message
final, inherited
threadParticipants List<User>
Reserved field indicating the thread participants for this message.
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
type String
The message type
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
updatedAt DateTime
Reserved field indicating when the message was updated last time.
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
user User
User who sent the message
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited

Methods

copyWith({String id, String text, String type, List<Attachment> attachments, List<User> mentionedUsers, Map<String, int> reactionCounts, Map<String, int> reactionScores, List<Reaction> latestReactions, List<Reaction> ownReactions, String parentId, Message quotedMessage, String quotedMessageId, int replyCount, List<User> threadParticipants, bool showInChannel, bool shadowed, bool silent, String command, DateTime createdAt, DateTime updatedAt, DateTime deletedAt, User user, bool pinned, DateTime pinnedAt, Object pinExpires = _pinExpires, User pinnedBy, Map<String, dynamic> extraData, MessageSendingStatus status, bool skipPush}) Message
Creates a copy of Message with specified attributes overridden.
inherited
merge(Message other) Message
Returns a new Message that is a combination of this message and the given other message.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Serialize to json
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

topLevelFields List<String>
Known top level fields. Useful for Serialization methods.
final