From 8ada18e9a18d0fb4ccebcf98ea89c119b10356a4 Mon Sep 17 00:00:00 2001 From: Lasse Reichstein Holst Nielsen Date: Fri, 6 Apr 2018 10:35:52 +0000 Subject: [PATCH] Mention removal of `defaultValue` parameter on stream methods in changelog. Also remove mentions in documentation. Change-Id: I51ad3137fff505168acde7f2e21bebc42a49da3b Reviewed-on: https://dart-review.googlesource.com/49721 Reviewed-by: Kevin Moore Commit-Queue: Lasse R.H. Nielsen --- CHANGELOG.md | 8 ++++++++ sdk/lib/async/stream.dart | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f79c22eb11c..fbb6e9f4a24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ (Add new changes here, and they will be copied to the change section for the next dev version) +## 2.0.0-dev.45.0 + +### Core library changes + +* `dart:async` + * Removed the deprecated `defaultValue` parameter on `Stream.firstWhere` and + `Stream.lastWhere`. + ### Tool Changes #### Pub diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart index 29afb711327..4f9f8a96ef0 100644 --- a/sdk/lib/async/stream.dart +++ b/sdk/lib/async/stream.dart @@ -1273,9 +1273,6 @@ abstract class Stream { * If an error occurs, or if this stream ends without finding a match and * with no [orElse] function provided, * the returned future is completed with an error. - * - * The [defaultValue] parameter is deprecated, and [orElse] should be used - * instead. */ Future firstWhere(bool test(T element), {T orElse()}) { _Future future = new _Future(); @@ -1314,9 +1311,6 @@ abstract class Stream { * instead of the first. * That means that a non-error result cannot be provided before this stream * is done. - * - * The [defaultValue] parameter is deprecated, and [orElse] should be used - * instead. */ Future lastWhere(bool test(T element), {T orElse()}) { _Future future = new _Future();