Index: sdk/lib/async/future.dart |
diff --git a/sdk/lib/async/future.dart b/sdk/lib/async/future.dart |
index 674fffd7bfd2c93e2aa71dca4307c50378681c0c..49b2460524c27e21f121043531bb7e773e399dfd 100644 |
--- a/sdk/lib/async/future.dart |
+++ b/sdk/lib/async/future.dart |
@@ -497,7 +497,7 @@ abstract class Future<T> { |
* with a `test` parameter, instead of handling both value and error in a |
* single [then] call. |
*/ |
- Future<S> then<S>(onValue(T value), { Function onError }); |
+ Future<S> then<S>(FutureOr<S> onValue(T value), { Function onError }); |
/** |
* Handles errors emitted by this [Future]. |