This command starts up a development server, or dev server, for your Dart web app. The dev server is an HTTP server on localhost that serves up your web app’s assets.

Start the dev server from the directory that contains your web app’s pubspec.yaml file:

$ cd ~/dart/helloworld
$ pub serve
Serving helloworld on <http://localhost:8080>