compoundIndices method

List<FormIndex> compoundIndices([
  1. FormIndex? container
])

The relevant indices inside container (by default the current index).

Implementation

List<FormIndex> compoundIndices([FormIndex? container]) {
  container ??= _currentFormIndex;
  final indices = <FormIndex>[];
  var walker = incrementIndex(container);
  while (FormIndex.isSubElement(container, walker)) {
    if (isIndexRelevant(walker)) indices.add(walker);
    walker = incrementIndex(walker);
  }
  return indices;
}