Use dart idioms

The tutorial should use dart idioms
fix le
Merge pull request #17 from vicb/patch-3

Use dart idioms