This repository was archived by the owner on Oct 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 44
55import 'dart:async' ;
66
7- import 'package:collection/collection.dart' ;
8-
97/// An asynchronous operation that can be cancelled.
108///
119/// The value of this operation is exposed as [value] . When this operation is
@@ -521,7 +519,7 @@ class CancelableCompleter<T> {
521519 final isFuture = toReturn is Future ;
522520 final cancelFutures = < Future <Object ?>> [
523521 if (isFuture) toReturn,
524- ...? _cancelForwarders? .map (_forward).whereNotNull ()
522+ ...? _cancelForwarders? .map (_forward).nonNulls
525523 ];
526524 final results = (isFuture && cancelFutures.length == 1 )
527525 ? [await toReturn]
Original file line number Diff line number Diff line change 44
55import 'dart:async' ;
66
7- import 'package:collection/collection.dart' ;
8-
97/// A collection of streams whose events are unified and sent through a central
108/// stream.
119///
@@ -239,7 +237,7 @@ class StreamGroup<T> implements Sink<Stream<T>> {
239237 return null ;
240238 }
241239 })
242- .whereNotNull ()
240+ .nonNulls
243241 .toList ();
244242
245243 _subscriptions.clear ();
Original file line number Diff line number Diff line change 55import 'dart:async' ;
66import 'dart:collection' ;
77
8- import 'package:collection/collection.dart' ;
8+ import 'package:collection/collection.dart' show QueueList ;
99
1010import 'cancelable_operation.dart' ;
1111import 'result/result.dart' ;
You can’t perform that action at this time.
0 commit comments