Chain constructor

Chain({
  1. required List<Step> steps,
})

A Chain that consists of a List of Step.

Will execute the Step in their order, if the context won't pop() or close().

Implementation

factory Chain({required List<Step> steps}) {
  return Chain._internal(
    build: (index) {
      return steps[index];
    },
    length: steps.length,
  );
}