setTouched method

void setTouched(
  1. String name
)

Marks name as touched (typically on focus/blur) and validates it.

Implementation

void setTouched(String name) {
  _touched.add(name);
  _validateField(name);
  notifyListeners();
}