reset method

void reset()

Clears values, errors, touched state, and returns to pristine.

Implementation

void reset() {
  _values.clear();
  _errors.clear();
  _touched.clear();
  _submitAttempted = false;
  _status = const PrismFormPristine();
  notifyListeners();
}