getSubSource method Null safety
Returns a subset iterable from source
that skips skipItems
and copies
up to nrItems
(if specified) or the entire list (if not specified).
Implementation
@protected
Iterable<T> getSubSource(Iterable<T> source, int skipItems, int? nrItems) {
Iterable<T> subSource = source.skip(skipItems);
if (nrItems != null) {
subSource = subSource.take(nrItems);
}
return subSource;
}