TakeRange<T> constructor
Creates a TakeRange that limits iteration to the first _count elements of _iterable.
Implementation
TakeRange(this._iterable, this._count) {
if (_count < 0) {
throw ArgumentError.value(
_count,
'count',
'Must be greater than or equal to zero',
);
}
}