mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:59:16 +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:
parent
19b4349487
commit
8ada18e9a1
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue