slice method

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

Implementation

@pragma("vm:prefer-inline")
Slice<T> slice([int start = 0, int? end]) {
  end ??= length;
  return Slice(this, start, end);
}