Every flutter command gives this error:
Building flutter tool... Running pub upgrade... The current Dart SDK version is 2.5.0.
Because flutter_tools requires SDK version >=2.7.0 <3.0.0, version solving failed. Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Waiting for 0 seconds, press CTRL+C to quit ...
Not able to run a single flutter command, what's the issue