learn-dart icon indicating copy to clipboard operation
learn-dart copied to clipboard

How to use commnents in Dart code?

Open SimonLab opened this issue 5 years ago • 0 comments

Add a section in README to describe how to use comments in Dart code

  • line comment with //
  • block comment /*...*/
  • documentation comment with ///. Can be useful with dartdoc which is a tool to convert doc comment to html. Markdown format can be used in doc comment

ref: https://dart.dev/guides/language/effective-dart/documentation

SimonLab avatar Jan 15 '20 15:01 SimonLab