Why?
This happens, because the your specified language version is higher than the one declared in the .dart_tool directory (specifically in the package_config.json file).
Solution
You can either delete the folder manually or let Flutter tools do it for you. Run flutter clean from the terminal or, if using Android Studio, go to Tools -> Flutter -> Flutter Clean.