reset method

void reset()

Resets all fields to their initial values and clears all interaction state.

After calling reset, isDirty and isTouched will both return false across the entire form.

Implementation

void reset() {
  for (final field in _fields.values) {
    field.reset();
  }
}