ListSlice<E> constructor

ListSlice<E>(
  1. List<E> source,
  2. int start,
  3. int end
)

Creates a slice of source from start to end.

Implementation

ListSlice(this.source, this.start, int end)
    : length = end - start,
      _initialSize = source.length {
  RangeError.checkValidRange(start, end, source.length);
}