Chain.builder constructor

Chain.builder(
  1. Step builder(
    1. int index
    ), {
  2. required int length,
})

A Chain that consists of it's builder function and length.

Will execute the builder's Steps, if the context won't pop() or close().

Implementation

factory Chain.builder(Step builder(int index), {required final int length}) {
  return Chain._internal(build: builder, length: length);
}