To upgrade to a new version of the package, for example to use new features in that package, run flutter pub upgrade (Upgrade dependencies in IntelliJ or Android Studio) to retrieve the highest available version of the package that is allowed by the version constraint specified in pubspec. yaml .
Read moreHow do I update Flutter SDK to latest version?
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