Libraries and visibility

The import and library directives can help you create amodular and shareable code base. Libraries not only provide APIs, butare a unit of privacy: identifiers that start with an underscore ()are visible only inside the library. _Every Dart app is a library, evenif it doesn’t use a library directive.

Libraries can be distributed using packages.