Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 44a4f36

Browse files
Markzipancommit-bot@chromium.org
authored andcommitted
[sdk] Updating Stream.contains to accept null values.
Change-Id: Icdb4e3fb04625b8e0ffabe1214b196cd7a9eb1ed Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138888 Reviewed-by: Lasse R.H. Nielsen <[email protected]> Commit-Queue: Mark Zhou <[email protected]>
1 parent 7e0139e commit 44a4f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk_nnbd/lib/async/stream.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ abstract class Stream<T> {
837837
* the returned future is completed with that error,
838838
* and processing stops.
839839
*/
840-
Future<bool> contains(Object needle) {
840+
Future<bool> contains(Object? needle) {
841841
_Future<bool> future = new _Future<bool>();
842842
StreamSubscription<T> subscription =
843843
this.listen(null, onError: future._completeError, onDone: () {

0 commit comments

Comments
 (0)