copyWith method

UpdateChatDraftMessage copyWith({
  1. int? chatId,
  2. DraftMessage? draftMessage,
  3. List<ChatPosition>? positions,
})

Implementation

UpdateChatDraftMessage copyWith({
  int? chatId,
  DraftMessage? draftMessage,
  List<ChatPosition>? positions,
}) => UpdateChatDraftMessage(
  chatId: chatId ?? this.chatId,
  draftMessage: draftMessage ?? this.draftMessage,
  positions: positions ?? this.positions,
);