Skip to Main Content
Dart in Action
book

Dart in Action

by Chris Buckett
January 2013
Beginner content levelBeginner
424 pages
13h 26m
English
Manning Publications
Content preview from Dart in Action

Chapter 5. Understanding libraries and privacy

This chapter covers

  • Organizing your code into reusable packages
  • Importing libraries into your application
  • Hiding functionality with library privacy
  • Using multiple source files
  • Using scripts as runnable libraries

Most programming languages have a library structure that allows code to be split over multiple files and published to other developers, which promotes modularity and code reuse and improves the ability of developers to work on different parts of the same codebase by hiding the internal implementation of a library. Dart is no exception; but in Dart, the library mechanism also has a big impact on privacy, especially class and function privacy. In languages such as Java and C#, privacy ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Dart: Up and Running

Dart: Up and Running

Kathy Walrath, Seth Ladd
Dart: Scalable Application Development

Dart: Scalable Application Development

Davy Mitchell, Sergey Akopkokhyants, Ivo Balbaert
Web Programming with Dart

Web Programming with Dart

Moises Belchin, Patricia Juberias

Publisher Resources

ISBN: 9781617290862Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link