you can find this pubspex.yaml in flutter in following location
D:\Mobile-Dev\src\flutter\packages\flutter_tools
open CMD change Directory into above location and now you can run flutter upgrades get and other command.
This one is working complete fine for me. Hope this will work for you