Updated to work with latest Dart.

Tested successfully in 0.5.9.0_r22879