combine method
Combines this validation result with another one.
The combined result is valid only if both results are valid.
Implementation
ValidationResult combine(ValidationResult other) {
return ValidationResult(
isValid: isValid && other.isValid,
errors: [...errors, ...other.errors],
warnings: [...warnings, ...other.warnings],
suggestions: [...suggestions, ...other.suggestions],
);
}