He would have announced it right after the champions league win or at the parade if he was intending on staying.
i just dont get moving to barca though. Aside from the financial shitshow and the very real chance he won't get paid what they promise him, he's not even guaranteed to play every week there. Pedri and Gavi are Xavi favourites and being from the academy will always play which means it's him or FDJ or one of their other players for the holding role, something he's very capable of doing but wouldn't say is his best position.
Captain of the treble winning European champions, plays regularly and the best manager in the world wants him to stay and he's going to barca who are never winning the big titles in his last few years and will always be on the brink of complete financial meltdown during his time there. Not a footballing decision.