Message constructor
Message({
- List<
Attachment> attachments = const [], - bool? beforeMessageSendFailed,
- required String cid,
- String? command,
- required DateTime createdAt,
- Map<
String, Object> custom = const {}, - DateTime? deletedAt,
- required int deletedReplyCount,
- required String html,
- Map<
String, String> i18n = const {}, - required String id,
- Map<
String, List< imageLabels = const {},String> > - List<
Reaction> latestReactions = const [], - List<
UserObject> mentionedUsers = const [], - DateTime? messageTextUpdatedAt,
- String? mml,
- List<
Reaction> ownReactions = const [], - String? parentId,
- DateTime? pinExpires,
- required bool pinned,
- DateTime? pinnedAt,
- UserObject? pinnedBy,
- Poll? poll,
- String? pollId,
- Message? quotedMessage,
- String? quotedMessageId,
- Map<
String, int> reactionCounts = const {}, - Map<
String, ReactionGroupResponse> reactionGroups = const {}, - Map<
String, int> reactionScores = const {}, - required int replyCount,
- required bool shadowed,
- bool? showInChannel,
- required bool silent,
- required String text,
- List<
UserObject> threadParticipants = const [], - required MessageTypeEnum type,
- required DateTime updatedAt,
- UserObject? user,
Returns a new Message instance.
Implementation
Message({
this.attachments = const [],
this.beforeMessageSendFailed,
required this.cid,
this.command,
required this.createdAt,
this.custom = const {},
this.deletedAt,
required this.deletedReplyCount,
required this.html,
this.i18n = const {},
required this.id,
this.imageLabels = const {},
this.latestReactions = const [],
this.mentionedUsers = const [],
this.messageTextUpdatedAt,
this.mml,
this.ownReactions = const [],
this.parentId,
this.pinExpires,
required this.pinned,
this.pinnedAt,
this.pinnedBy,
this.poll,
this.pollId,
this.quotedMessage,
this.quotedMessageId,
this.reactionCounts = const {},
this.reactionGroups = const {},
this.reactionScores = const {},
required this.replyCount,
required this.shadowed,
this.showInChannel,
required this.silent,
required this.text,
this.threadParticipants = const [],
required this.type,
required this.updatedAt,
this.user,
});