Slice<T> constructor

Slice<T>(
  1. List<T> _list, [
  2. int _start = 0,
  3. int? end
])

Implementation

@pragma("vm:prefer-inline")
Slice(this._list, [this._start = 0, int? end])
    : _end = end ?? _list.length,
      assert(_start >= 0 && (end == null || end <= _list.length),
          "Index out of bounds");