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) {
  final len = list.length;
  _checkEnd(0, end, len);
  return list.slice(0, end);
}