Clarify dart:ui dependencies in foundation library (#24868)

diff --git a/packages/flutter/lib/src/foundation/README.md b/packages/flutter/lib/src/foundation/README.md
index cbc71ce..c37e4f0 100644
--- a/packages/flutter/lib/src/foundation/README.md
+++ b/packages/flutter/lib/src/foundation/README.md
@@ -2,3 +2,12 @@
 nothing but core Dart packages. They can't depend on `dart:ui`, they
 can't depend on any `package:`, and they can't depend on anything
 outside this directory.
+
+Currently they do depend on dart:ui, but only for `VoidCallback` and
+`hashValues` (and maybe one day `hashList` and `lerpDouble`), which
+are all intended to be moved out of `dart:ui` and into `dart:core`.
+
+See also:
+
+ * https://github.com/dart-lang/sdk/issues/27791 (`VoidCallback`)
+ * https://github.com/dart-lang/sdk/issues/25217 (`hashValues`, `hashList`, and `lerpDouble`)
diff --git a/packages/flutter/lib/src/foundation/profile.dart b/packages/flutter/lib/src/foundation/profile.dart
index 083df8d..ebc2729 100644
--- a/packages/flutter/lib/src/foundation/profile.dart
+++ b/packages/flutter/lib/src/foundation/profile.dart
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-import 'dart:ui';
+import 'dart:ui' show VoidCallback;
 
 /// Whether we've been built in release mode.
 const bool _kReleaseMode = bool.fromEnvironment('dart.vm.product');