-
Book Overview & Buying
-
Table Of Contents
Mastering DART
By :
An annotation is metadata—data about data. An annotation is a way to keep additional information about the code in the code itself. An annotation can have parameter values to pass specific information about an annotated member. An annotation without parameters is called a marker annotation. The purpose of a marker annotation is just to mark the annotated member.
Dart annotations are constant expressions beginning with the @ character. We can apply annotations to all the members of the Dart language, excluding comments and annotations themselves. Annotations can be:
The documentation generator does not add annotations to the generated documentation pages automatically, so the information about annotations must be specified separately in comments.
There are several built-in annotations defined in the...
Change the font size
Change margin width
Change background colour