unhighlightField method

bool unhighlightField(
  1. String fieldName
)

Implementation

bool unhighlightField(String fieldName) {
  if (canHighlightInputs()) return false;

  var fieldElement = getFieldElement(fieldName);
  if (fieldElement == null) return false;

  fieldElement.classes.remove(highlightClass);

  _hideInvalidMessage(fieldName);

  return true;
}