skip method Null safety
- int count
Returns an Iterable that provides all but the first
When the returned iterable is iterated, it starts iterating over
first skipping past the initial
this has fewer than
count elements, then the resulting Iterable is
After that, the remaining elements are iterated in the same order as
in this iterable.
Some iterables may be able to find later elements without first iterating through earlier elements, for example when iterating a List. Such iterables are allowed to ignore the initial skipped elements.
final numbers = <int>[1, 2, 3, 5, 6, 7]; final result = numbers.skip(4); // (6, 7) final skipAll = numbers.skip(100); // () - no elements.
count must not be negative.
Iterable<E> skip(int count) => SubListIterable<E>(this, count, null);