Note: To generate documentation, your package must pass dart analyze without errors . By default, the documentation files are static HTML files, placed in the doc/api directory. You can create the files in a different directory with the –output-dir flag.