Use dart idioms

The tutorial should use dart idioms