I found the command of dartdoc, when I run it, I get the api documantation for Dart. How can I generate the documantation for flutter just like docs.flutter.io?
Dart Single line Comment: Dart single line comment is used to comment a line until line break occurs. It is done using a double forward-slash (//). // This is a single line comment.
run
pub global activate dartdoc
dartdoc
See also https://pub.dartlang.org/packages/dartdoc
By default docs are only generate for the public API in lib/
.
Code in lib/src/
is considered private if not exported from files in lib/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With