Message class

Annotations
  • @freezed
  • @immutable
  • @JsonSerializable.new()

Constructors

Message({required List<Attachment> attachments, bool? beforeMessageSendFailed, required String cid, String? command, required DateTime createdAt, required Map<String, Object?> custom, DateTime? deletedAt, bool? deletedForMe, required int deletedReplyCount, required String html, Map<String, String>? i18n, required String id, Map<String, List<String>>? imageLabels, required List<Reaction> latestReactions, ChannelMember? member, required List<User> mentionedUsers, DateTime? messageTextUpdatedAt, String? mml, ModerationV2Response? moderation, required List<Reaction> ownReactions, String? parentId, DateTime? pinExpires, required bool pinned, DateTime? pinnedAt, User? pinnedBy, Poll? poll, String? pollId, Message? quotedMessage, String? quotedMessageId, required Map<String, int> reactionCounts, required Map<String, ReactionGroupResponse> reactionGroups, required Map<String, int> reactionScores, MessageReminder? reminder, required int replyCount, required List<String> restrictedVisibility, required bool shadowed, SharedLocation? sharedLocation, bool? showInChannel, required bool silent, required String text, List<User>? threadParticipants, required String type, required DateTime updatedAt, User? user})
const

Properties

attachments List<Attachment>
final
beforeMessageSendFailed bool?
final
cid String
final
command String?
final
copyWith → $MessageCopyWith<Message>
Create a copy of Message with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
final
custom Map<String, Object?>
final
deletedAt DateTime?
final
deletedForMe bool?
final
deletedReplyCount int
final
hashCode int
The hash code for this object.
no setterinherited
html String
final
i18n Map<String, String>?
final
id String
final
imageLabels Map<String, List<String>>?
final
latestReactions List<Reaction>
final
member ChannelMember?
final
mentionedUsers List<User>
final
messageTextUpdatedAt DateTime?
final
mml String?
final
moderation ModerationV2Response?
final
ownReactions List<Reaction>
final
parentId String?
final
pinExpires DateTime?
final
pinned bool
final
pinnedAt DateTime?
final
pinnedBy → User?
final
poll Poll?
final
pollId String?
final
quotedMessage Message?
final
quotedMessageId String?
final
reactionCounts Map<String, int>
final
reactionGroups Map<String, ReactionGroupResponse>
final
reactionScores Map<String, int>
final
reminder MessageReminder?
final
replyCount int
final
restrictedVisibility List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowed bool
final
sharedLocation SharedLocation?
final
showInChannel bool?
final
silent bool
final
text String
final
threadParticipants List<User>?
final
type String
final
updatedAt DateTime
final
user → User?
final

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) Message