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 4
4
5
5
import 'dart:async' ;
6
6
7
- import 'package:collection/collection.dart' ;
8
-
9
7
/// An asynchronous operation that can be cancelled.
10
8
///
11
9
/// The value of this operation is exposed as [value] . When this operation is
@@ -521,7 +519,7 @@ class CancelableCompleter<T> {
521
519
final isFuture = toReturn is Future ;
522
520
final cancelFutures = < Future <Object ?>> [
523
521
if (isFuture) toReturn,
524
- ...? _cancelForwarders? .map (_forward).whereNotNull ()
522
+ ...? _cancelForwarders? .map (_forward).nonNulls
525
523
];
526
524
final results = (isFuture && cancelFutures.length == 1 )
527
525
? [await toReturn]
Original file line number Diff line number Diff line change 4
4
5
5
import 'dart:async' ;
6
6
7
- import 'package:collection/collection.dart' ;
8
-
9
7
/// A collection of streams whose events are unified and sent through a central
10
8
/// stream.
11
9
///
@@ -239,7 +237,7 @@ class StreamGroup<T> implements Sink<Stream<T>> {
239
237
return null ;
240
238
}
241
239
})
242
- .whereNotNull ()
240
+ .nonNulls
243
241
.toList ();
244
242
245
243
_subscriptions.clear ();
Original file line number Diff line number Diff line change 5
5
import 'dart:async' ;
6
6
import 'dart:collection' ;
7
7
8
- import 'package:collection/collection.dart' ;
8
+ import 'package:collection/collection.dart' show QueueList ;
9
9
10
10
import 'cancelable_operation.dart' ;
11
11
import 'result/result.dart' ;
You can’t perform that action at this time.
0 commit comments