resetValid method Null safety

void resetValid()

Implementation

void resetValid() {
  keys.forEach((element) {
    if (element.currentState != null) {
      element.currentState.resetValide();
    }
  });
}