stepBy method

  1. @override
Iter<T> stepBy(
  1. int step
)

Creates an iterator starting at the same point, but stepping by the given amount at each iteration.

Implementation

@override
@pragma("vm:prefer-inline")
Iter<T> stepBy(int step) {
  assert(step > 0, 'Step must be greater than 0');
  return Iter.fromIterable(_stepByHelper(step));
}