skip method
- intcount
Skips the firstcount data events from this stream.
Returns a stream that emits the same events as this stream wouldif listened to at the same time, except that the firstcountdata events are not emitted.The returned stream is done when this stream is.
If this stream emits fewer thancount data eventsbefore being done, the returned stream emits no data events.
The returned stream is a broadcast stream if this stream is.For a broadcast stream, the events are only counted from the timethe returned stream is listened to.
Example:
final stream = Stream<int>.periodic(const Duration(seconds: 1), (i) => i).skip(7);stream.forEach(print); // Skips events 0, ..., 6. Outputs events: 7, ...Implementation
Stream<T> skip(int count) { return _SkipStream<T>(this, count);}