Index: sdk/lib/async/stream.dart |
diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart |
index 5c04e83f5c589a987f88edf07612b0c4d037db14..48c40637c1e432fabdd56637e5339edb76d04860 100644 |
--- a/sdk/lib/async/stream.dart |
+++ b/sdk/lib/async/stream.dart |
@@ -871,8 +871,8 @@ abstract class Stream<T> { |
* In case of a `done` event the future completes with the given |
* [futureValue]. |
*/ |
- Future<E> drain<E>([E futureValue]) => listen(null, cancelOnError: true) |
- .asFuture<E>(futureValue); |
+ Future<E> drain<E>([E futureValue]) => |
+ listen(null, cancelOnError: true).asFuture<E>(futureValue); |
/** |
* Provides at most the first [count] data events of this stream. |