BaseMessageParams.withMessage constructor Null safety
- BaseMessage message,
- {bool? deepCopy}
Implementation
BaseMessageParams.withMessage(BaseMessage message, {bool? deepCopy}) {
data = message.data;
customType = message.customType;
metaArrays = message.metaArrays;
mentionType = message.mentionType;
mentionedUsers = message.mentionedUsers;
isPinnedMessage = message.isPinnedMessage;
mentionedUserIds = message.mentionedUsers.map((e) => e.userId).toList();
if (deepCopy != null && deepCopy) {
parentMessageId = message.parentMessageId;
}
}