Adjusting example code to run on Dart VM version: 0.1.2.0_r17004 (Fri Jan 11 16:52:26 2013)