validate method

void validate()

Implementation

void validate() {
  if (_valid != null) _valid?.call(isValid);
}