takeWhile abstract method
Returns a stream consisting of the longest prefix of elements taken from this stream that match the given predicate.
Example
final lessThan5 = GenericStream.range(1, 10)
.takeWhile((n) => n < 5);
Implementation
GenericStream<T> takeWhile(bool Function(T) predicate);