take method
Iterable<E> take(Returns a lazy iterable of the count
first elements of this iterable.
The returned Iterable
may contain fewer than count
elements, if this
contains fewer than count
elements.
The elements can be computed by stepping through iterator
until count
elements have been seen.
The count
must not be negative.
Source
Iterable<E> take(int count) => new SubListIterable<E>(this, 0, count);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-collection/ListQueue/take.html