Updated to Dart 1.0

I have updated your code to Dart 1.0, in order to be able to run it.
As I`m still noob in Dart, please double check that is ok.