updated Dart sample to align with best practices
Merge pull request #878 from kevmoo/master

updated Dart sample to align with best practices