Slice<T>.fromSlice constructor

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

Implementation

@pragma("vm:prefer-inline")
Slice.fromSlice(Slice<T> slice, [int start = 0, int? end])
    : this(slice._list, slice._start + start,
          end == null ? slice._end : slice._start + end);