September 2019
Beginner
512 pages
12h 52m
English
When you publish a package, API documentation is automatically generated (as long as you use the comment type mentioned earlier) and published to dartdocs.org. You can, if necessary, generate the API documentation locally.
First, configure the Flutter root environment in the following way:
export FLUTTER_ROOT=~/dev/flutter (on macOS or Linux)set FLUTTER_ROOT=~/dev/flutter (on Windows)
You can generate a package documentation by running the following:
cd ~/dev/mypackage$FLUTTER_ROOT/bin/cache/dart-sdk/bin/dartdoc (on macOS or Linux)%FLUTTER_ROOT%\bin\cache\dart-sdk\bin\dartdoc (on Windows)
Read now
Unlock full access