builder method
Retrieves a Step from the build function
and returns a Skipped step as well as ends the loop,
whenever the retrieved step is null.
Implementation
@override
Step builder() {
final Step? step = build(index++);
if (index == length - 1) index = 0;
leave = step == null;
return step ?? Skipped();
}