toList method
- @override
Collects all elements of this stream in a List
.
Creates a List<T>
and adds all elements of the stream to the list
in the order they arrive.
When the stream ends, the returned future is completed with that list.
If the stream contains an error, the returned future is completed with that error, and processing stops.
Implementation
@override
AsObservableFuture<List<T>> toList() =>
new AsObservableFuture<List<T>>(_stream.toList());