Just upgrade your flutter version. If you don't want to upgrade then just download the current flutter sdk from flutter's sdk archive site and replace the your current flutter folder with the newly downloaded one(make sure the folder name doesn't change so that path doesn't get affected) and restart VSCode.