A single-line comment begins with . Everything between //
and theend of line is ignored by the Dart compiler.
Documentation comments are multi-line or single-line comments that beginwith or /**
. Using ///
on consecutive lines has the sameeffect as a multi-line doc comment.
Here is an example of documentation comments with references to otherclasses and arguments:
To parse Dart code and generate HTML documentation, you can use the SDK’sFor an example of generated documentation, see the Dart APIdocumentation. For advice on how to structureyour comments, see