slice<T> method

  1. @override
Slice<T> slice<T>(
  1. List<T> list
)
override

Creates a slice from list based on this range.

Implementation

@override
Slice<T> slice<T>(List<T> list) {
  _checkValidRange(start, end, list.length);
  return list.slice(start, end);
}