ToggleChatIsPinned constructor
      const
      ToggleChatIsPinned({})
     
    
Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium
Implementation
const ToggleChatIsPinned({
  required this.chatList,
  required this.chatId,
  required this.isPinned,
});