Chapter 4. Object Structures in Dart

One of the most attractive Dart enhancements is the ability to craft proper object taxonomies using object-oriented principles, such as inheritance and traditional design patterns. Dart offers many language features to help encapsulate code while making it easy to reuse behaviors, classes, and libraries. This chapter introduces you to the language features, and Chapter 5 looks at how to leverage these features by focusing on how Dart structures objects and their corresponding object scopes.


A variable is a named identifier accessible from within the current scope. Variables, depending on the object type, can store a reference to either a value or an object instance. Dart supports first-class functions, ...

Get Write Web Apps with Dart: Develop and Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.