copyWith method
SendTextMessageDraft
copyWith({
- int? chatId,
- int? forumTopicId,
- int? draftId,
- FormattedText? text,
Implementation
SendTextMessageDraft copyWith({
int? chatId,
int? forumTopicId,
int? draftId,
FormattedText? text,
}) => SendTextMessageDraft(
chatId: chatId ?? this.chatId,
forumTopicId: forumTopicId ?? this.forumTopicId,
draftId: draftId ?? this.draftId,
text: text ?? this.text,
);