Fix for current Dart version.