resetLastCompletedRuleIndexes method Null safety

void resetLastCompletedRuleIndexes()

Implementation

void resetLastCompletedRuleIndexes() {
  lastCompletedRuleIndex = -1;
  for (Node child in children) {
    if (child is ParentNode) child.resetLastCompletedRuleIndexes();
  }
}