Pub 服务

此命令为 Dart Web 应用程序启动开发服务器或开发服务器。开发服务器是 localhost 上的 HTTP 服务器,用于提供 Web 应用程序的资产

从包含你的 Web 应用程序的 pubspec.yaml 文件的目录启动 dev 服务器:

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