title: Dart get won't run
body: <p>I am facing a problem that really isn't making any sense, a problem that started when I wanted to use the &quot;http&quot; and &quot;provide&quot; dependencies by entering them into the pubspec.yaml file.</p>
  <p><a href="https://i.stack.imgur.com/HMlgI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HMlgI.png" alt="pubspec.yaml" /></a></p>
  <p>pub get won't run due to the dart version being lower than 2.16.1 even though when I run <code>dart --version</code> it informs me that I do have the latest dart version (2.16.1).</p>
  <p><a href="https://i.stack.imgur.com/3WtUj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3WtUj.png" alt="cmd results" /></a></p>
  <p>I tried finding answers on the internet including on the <a href="https://dart.dev/" rel="nofollow noreferrer">https://dart.dev/</a> site. I really don't know what else to do at this point, as this is for my assignment due on the 25th of March 2022. please help.</p>