Clone from Dart SDK