nested method

PlaybookStepContext nested({
  1. required int index,
  2. required int total,
  3. required String title,
  4. String? playbook,
  5. List<String>? path,
})

The context for steps nested in the step at index of total called title, belonging to playbook with path.

Implementation

PlaybookStepContext nested({
  required int index,
  required int total,
  required String title,
  String? playbook,
  List<String>? path,
}) => PlaybookStepContext(
  playbook: playbook ?? this.playbook,
  path: path ?? this.path,
  depth: depth + 1,
  caption: '$caption$index/$total · $title › ',
  emit: emit,
);