Use pub build when you’re ready to deploy your web app. When you run pub build, it generates the assets for the current package and all of its dependencies, putting them into new directory named build.
To use pub build
, just run it in your package’s root directory. For example:
$ cd ~/dart/helloworld
$ pub build
Building helloworld......
Built 5 files!