I believe that people more often want to see list details than edit list title, so it would be more natural to expand list details by clicking list title, than on extra button "list details" that takes some space and make visual clutter while scanning tasks. There could be "edit" button that will be visible in list details.
So my proposition is:
Toggle list details by clicking on list title
Edit list title with a button "edit title" hidden inside list details.