copyWith method

  1. @override
UpdateStopMessageDraft copyWith({
  1. int? chatId,
  2. int? forumTopicId,
  3. int? draftId,
  4. dynamic extra,
  5. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
UpdateStopMessageDraft copyWith({
  int? chatId,
  int? forumTopicId,
  int? draftId,
  dynamic extra,
  int? clientId,
}) => UpdateStopMessageDraft(
  chatId: chatId ?? this.chatId,
  forumTopicId: forumTopicId ?? this.forumTopicId,
  draftId: draftId ?? this.draftId,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);