copyWith method
Message
copyWith({
- int? id,
- MessageSender? senderId,
- MessageSender? receiverId,
- int? chatId,
- MessageSendingState? sendingState,
- MessageSchedulingState? schedulingState,
- bool? isOutgoing,
- bool? isPinned,
- bool? isFromOffline,
- bool? canBeSaved,
- bool? hasTimestampedMedia,
- bool? isChannelPost,
- bool? isPaidStarSuggestedPost,
- bool? isPaidGramSuggestedPost,
- bool? containsUnreadMention,
- bool? containsUnreadPollVotes,
- int? date,
- int? editDate,
- MessageForwardInfo? forwardInfo,
- MessageImportInfo? importInfo,
- MessageInteractionInfo? interactionInfo,
- List<
UnreadReaction> ? unreadReactions, - FactCheck? factCheck,
- SuggestedPostInfo? suggestedPostInfo,
- MessageReplyTo? replyTo,
- MessageTopic? topicId,
- MessageSelfDestructType? selfDestructType,
- double? selfDestructIn,
- double? autoDeleteIn,
- int? viaBotUserId,
- MessageSender? guestBotCallerId,
- int? senderBusinessBotUserId,
- int? senderBoostCount,
- String? senderTag,
- int? paidMessageStarCount,
- String? authorSignature,
- int? mediaAlbumId,
- int? effectId,
- RestrictionInfo? restrictionInfo,
- String? summaryLanguageCode,
- MessageContent? content,
- ReplyMarkup? replyMarkup,
- int? ephemeralMessageId,
Implementation
Message copyWith({
int? id,
MessageSender? senderId,
MessageSender? receiverId,
int? chatId,
MessageSendingState? sendingState,
MessageSchedulingState? schedulingState,
bool? isOutgoing,
bool? isPinned,
bool? isFromOffline,
bool? canBeSaved,
bool? hasTimestampedMedia,
bool? isChannelPost,
bool? isPaidStarSuggestedPost,
bool? isPaidGramSuggestedPost,
bool? containsUnreadMention,
bool? containsUnreadPollVotes,
int? date,
int? editDate,
MessageForwardInfo? forwardInfo,
MessageImportInfo? importInfo,
MessageInteractionInfo? interactionInfo,
List<UnreadReaction>? unreadReactions,
FactCheck? factCheck,
SuggestedPostInfo? suggestedPostInfo,
MessageReplyTo? replyTo,
MessageTopic? topicId,
MessageSelfDestructType? selfDestructType,
double? selfDestructIn,
double? autoDeleteIn,
int? viaBotUserId,
MessageSender? guestBotCallerId,
int? senderBusinessBotUserId,
int? senderBoostCount,
String? senderTag,
int? paidMessageStarCount,
String? authorSignature,
int? mediaAlbumId,
int? effectId,
RestrictionInfo? restrictionInfo,
String? summaryLanguageCode,
MessageContent? content,
ReplyMarkup? replyMarkup,
int? ephemeralMessageId,
}) => Message(
id: id ?? this.id,
senderId: senderId ?? this.senderId,
receiverId: receiverId ?? this.receiverId,
chatId: chatId ?? this.chatId,
sendingState: sendingState ?? this.sendingState,
schedulingState: schedulingState ?? this.schedulingState,
isOutgoing: isOutgoing ?? this.isOutgoing,
isPinned: isPinned ?? this.isPinned,
isFromOffline: isFromOffline ?? this.isFromOffline,
canBeSaved: canBeSaved ?? this.canBeSaved,
hasTimestampedMedia: hasTimestampedMedia ?? this.hasTimestampedMedia,
isChannelPost: isChannelPost ?? this.isChannelPost,
isPaidStarSuggestedPost:
isPaidStarSuggestedPost ?? this.isPaidStarSuggestedPost,
isPaidGramSuggestedPost:
isPaidGramSuggestedPost ?? this.isPaidGramSuggestedPost,
containsUnreadMention: containsUnreadMention ?? this.containsUnreadMention,
containsUnreadPollVotes:
containsUnreadPollVotes ?? this.containsUnreadPollVotes,
date: date ?? this.date,
editDate: editDate ?? this.editDate,
forwardInfo: forwardInfo ?? this.forwardInfo,
importInfo: importInfo ?? this.importInfo,
interactionInfo: interactionInfo ?? this.interactionInfo,
unreadReactions: unreadReactions ?? this.unreadReactions,
factCheck: factCheck ?? this.factCheck,
suggestedPostInfo: suggestedPostInfo ?? this.suggestedPostInfo,
replyTo: replyTo ?? this.replyTo,
topicId: topicId ?? this.topicId,
selfDestructType: selfDestructType ?? this.selfDestructType,
selfDestructIn: selfDestructIn ?? this.selfDestructIn,
autoDeleteIn: autoDeleteIn ?? this.autoDeleteIn,
viaBotUserId: viaBotUserId ?? this.viaBotUserId,
guestBotCallerId: guestBotCallerId ?? this.guestBotCallerId,
senderBusinessBotUserId:
senderBusinessBotUserId ?? this.senderBusinessBotUserId,
senderBoostCount: senderBoostCount ?? this.senderBoostCount,
senderTag: senderTag ?? this.senderTag,
paidMessageStarCount: paidMessageStarCount ?? this.paidMessageStarCount,
authorSignature: authorSignature ?? this.authorSignature,
mediaAlbumId: mediaAlbumId ?? this.mediaAlbumId,
effectId: effectId ?? this.effectId,
restrictionInfo: restrictionInfo ?? this.restrictionInfo,
summaryLanguageCode: summaryLanguageCode ?? this.summaryLanguageCode,
content: content ?? this.content,
replyMarkup: replyMarkup ?? this.replyMarkup,
ephemeralMessageId: ephemeralMessageId ?? this.ephemeralMessageId,
);