Converted direction to enum syntax and specified Dart 1.8 as minimum sdk