Pub is a package manager for Dart applications and libraries.
Pub is a package manager for Dart applications and libraries. You can find packages to use in a project or publish packages to the package repository. Pub automatically keeps track of dependencies to other packages and makes sure that the dependencies use the right version of a package.
Basics:
- Use
pub getto get dependencies - Use
pub upgradeto upgrade a dependency - Use
pub publishto make your library available for others
Resources: