1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-05 09:20:04 +00:00

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 <kevmoo@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
Lasse Reichstein Holst Nielsen 2018-04-06 10:35:52 +00:00 committed by commit-bot@chromium.org
parent 19b4349487
commit 8ada18e9a1
2 changed files with 8 additions and 6 deletions

View File

@ -2,6 +2,14 @@
(Add new changes here, and they will be copied to the (Add new changes here, and they will be copied to the
change section for the next dev version) 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 ### Tool Changes
#### Pub #### Pub

View File

@ -1273,9 +1273,6 @@ abstract class Stream<T> {
* If an error occurs, or if this stream ends without finding a match and * If an error occurs, or if this stream ends without finding a match and
* with no [orElse] function provided, * with no [orElse] function provided,
* the returned future is completed with an error. * the returned future is completed with an error.
*
* The [defaultValue] parameter is deprecated, and [orElse] should be used
* instead.
*/ */
Future<T> firstWhere(bool test(T element), {T orElse()}) { Future<T> firstWhere(bool test(T element), {T orElse()}) {
_Future<T> future = new _Future(); _Future<T> future = new _Future();
@ -1314,9 +1311,6 @@ abstract class Stream<T> {
* instead of the first. * instead of the first.
* That means that a non-error result cannot be provided before this stream * That means that a non-error result cannot be provided before this stream
* is done. * is done.
*
* The [defaultValue] parameter is deprecated, and [orElse] should be used
* instead.
*/ */
Future<T> lastWhere(bool test(T element), {T orElse()}) { Future<T> lastWhere(bool test(T element), {T orElse()}) {
_Future<T> future = new _Future(); _Future<T> future = new _Future();