copyWith method

UpdateChatPosition copyWith({
  1. int? chatId,
  2. ChatPosition? position,
})

Implementation

UpdateChatPosition copyWith({int? chatId, ChatPosition? position}) =>
    UpdateChatPosition(
      chatId: chatId ?? this.chatId,
      position: position ?? this.position,
    );