Chapter 6Project: MVC in Dart

In this chapter, you’ll get your first real feel for what it means to write Dart code. Until now, our discussion has not strayed far from the familiar—or at least from what is similar to JavaScript.

We’ll take the very simple comic book collection application from Chapter 1, Project: Your First Dart Application and convert it to an MVC design pattern. Since this will be client based, it won’t be Model-View-Controller. Rather, it will be Model-Collection-View, plus a Router, similar to Backbone.js.

We’ll start by implementing collections of objects in Dart and then describe the objects themselves. Once we have the foundation in place, we’ll take a look at views and templates.

This is another “project” chapter, ...

Get Dart 1 for Everyone 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.