Examples are from [Dart Cookbook] (http://www.dartlang.org/docs/cookbook/).