validate method

bool validate()

Implementation

bool validate() {
  if (_value == null) {
    return widget.isRequired ? false : true;
  }

  if (_validationResult == null || _validationResult?.kind == CValidationKind.success) {
    return true;
  } else {
    return false;
  }
}