skip method

Stream<T> skip (
  1. int count
)

Skips the first count data events from this stream.

Returns a stream that emits the same events as this stream would if listened to at the same time, except that the first count data events are not emitted. The returned stream is done when this stream is.

If this stream emits fewer than count data events before 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 time the returned stream is listened to.

Implementation

Stream<T> skip(int count) {
  return new _SkipStream<T>(this, count);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-async/Stream/skip.html