If yes,then from where does my VS code get it if I have dart sdk 2.14.4 installed on my device
CodePudding user response:
Those constraints are the minimum and maximum versions.
If you give a minimum version of 2.11.9, you cannot use null safety (came with 2.12.0), because it did not exist in 2.11.9. You promised your project would work with all versions from 2.11.9 to anything smaller than 3. And your compiler enforces that promise.
It doesn't matter what version you have installed.