fix for Dart SDK API changes