Syntax def updated to reflect recent syntax changes in Dart.