What is pub tool?

Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter, AngularDart, and general Dart programs . Some basic command: Use pub get to get dependencies. Use pub upgrade to upgrade a dependency.

Read more

How does flutter pub work?

When running flutter pub get (Packages get in IntelliJ or Android Studio) for the first time after adding a package, Flutter saves the concrete package version found in the pubspec. lock lockfile. This ensures that you get the same version again if you, or another developer on your team, run flutter pub get .

Read more