clearValidators method

void clearValidators()

Empties out the sync validator list.

When you add or remove a validator at run time, you must call updateValueAndValidity(), or assign a new value to the control for the new validation to take effect.

Implementation

void clearValidators() {
  _validators.clear();
}