Fix Dart SDK breaking changes.