What’s Next

Although still quite new (which is saying something for a language as new as Dart), the unittest library is amazingly powerful. Not only does it support a wealth of testing primitives, but it also supports the sometimes difficult task of callback testing. Although we did not touch on it here, Dart already makes command-line testing easy—meaning simple regression builds. The combination of static type checking and a powerful unit testing library allows the discerning Dart developer to achieve the goal of robust, accurate, maintainable code.

Bearing that in mind, let’s spend our last few chapters looking at some of Dart’s cooler features.

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.