Using Dart’s Libraries

In this chapter we’ll cover Dart’s libraries, what libraries are, and how to create your own libraries. We’ll show you how to package functions, classes, or constants into a library for later use. Then we’ll see how to create more complex libraries, conformed by multiple source files, and how to re-export a library so that it shows or hides some namespaces.

At the end of the chapter you’ll see an example of how to use several concepts we’ve seen throughout this book, such as abstract classes, libraries, and pub packages. We have already seen how to define variables and functions, use the flow control and iteration ...

Get Web Programming with Dart now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.