hasValidateError method
Implementation
bool hasValidateError(){
if(_schema == null){
return false;
}
for(FieldSchema field in _schema!.fields){
if(field.isView){
continue;
}else if(field.isRecord){
Record? record = getByName(field.name);
if(record != null && record.hasValidateError()){
return true;
}
}else if(field.isRecordList){
RecordList? recordList = getByName(field.name);
if(recordList != null && recordList.hasValidateError()){
return true;
}
}else{
List<String>? validated = _validated[field.name];
if(validated != null && validated.length != 0){
return true;
}
}
}
return false;
}