Upgrade is one of the commands of the pub tool . $ dart pub upgrade [options] [dependencies] Like dart pub get , dart pub upgrade gets dependencies. The difference is that dart pub upgrade ignores any existing lockfile, so that pub can get the latest versions of all dependencies.
Read moreWhat does flutter upgrade command do?
Upgrading the Flutter SDK This command gets the most recent version of the Flutter SDK that’s available on your current Flutter channel . If you want an even more recent version of the Flutter SDK, switch to a less stable Flutter channel and then run flutter upgrade .
Read more