O'Reilly logo

Web Programming with Dart by Patricia Juberias, Moises Belchin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 6

image

Using the Dart Pub Package Manager

In this Chapter we’ll see what the Dart Pub Package Manager is, how to use it, and how it can help you in your Dart projects. We’ll create a new application and we will add an external dart package to see how Pub works. We’ll also learn how to use pubspec.yaml files and the basic pub commands. Later we’ll show you all the available Pub commands and what those commands can do.

What is Pub?

Pub is the package manager for Dart. It is the tool will let us add any library written by other developer to our applications in a very simple way. Pub automatically resolves dependencies and will keep us updated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required