Skip to content

Commit

Permalink
Mention removal of defaultValue parameter on stream methods in chan…
Browse files Browse the repository at this point in the history
…gelog.

Also remove mentions in documentation.

Change-Id: I51ad3137fff505168acde7f2e21bebc42a49da3b
Reviewed-on: https://dart-review.googlesource.com/49721
Reviewed-by: Kevin Moore <[email protected]>
Commit-Queue: Lasse R.H. Nielsen <[email protected]>
  • Loading branch information
lrhn authored and [email protected] committed Apr 6, 2018
1 parent 19b4349 commit 8ada18e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions sdk/lib/async/stream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1273,9 +1273,6 @@ abstract class Stream<T> {
* 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<T> firstWhere(bool test(T element), {T orElse()}) {
_Future<T> future = new _Future();
Expand Down Expand Up @@ -1314,9 +1311,6 @@ abstract class Stream<T> {
* 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<T> lastWhere(bool test(T element), {T orElse()}) {
_Future<T> future = new _Future();
Expand Down

0 comments on commit 8ada18e

Please sign in to comment.