concatenatedErrors method
Returns all errors in a text format. Errors are separated by delimiter (default is a space). IMPORTANT: Executing this method has the side-effect of also executing validate().
Implementation
String concatenatedErrors(List<ValidationResult> list) {
//var lst = validate();
String result = list.fold<String>('', (previous, element) {
return '$previous ${element.errorText ?? ''}';
});
return result.trim();
}