reset method
Resets the array back to its initial controls and resets each child.
Implementation
@override
void reset() {
_debounceTimer?.cancel();
_debounceTimer = null;
++_asyncValidationSeq;
_arrayValidating.value = false;
if (_itemFactory != null) {
fields.value = _itemFactory();
} else {
fields.value = List.of(_initialControls);
for (final child in fields.value) {
child.reset();
}
}
errors.value = [];
_arrayDirty.value = false;
isTouched.value = false;
}