Slice<T>.fromSlice constructor

Slice<T>.fromSlice(
  1. Slice<T> slice, [
  2. int start = 0,
  3. int end = -1
])

Implementation

Slice.fromSlice(Slice<T> slice, [int start = 0, int end = -1])
    : this(slice._list, slice._start + start,
          end == -1 ? slice._end : slice._start + end);