requiredErrorMsg property
String
get
requiredErrorMsg
Implementation
String get requiredErrorMsg => _requiredErrorMsg;
Custom error message to show when the field is required and blank.
Implementation
@Input()
set requiredErrorMsg(String value) {
_requiredErrorMsg = value;
if (_cd?.control != null) {
// Validator was changed. Rerun validation as required message may
// have changed.
_cd?.control?.updateValueAndValidity();
}
}