ConfigValidationResult class

Result of a configuration validation.

Constructors

ConfigValidationResult({required bool isValid, List<ConfigValidationError> errors = const [], List<ConfigValidationWarning> warnings = const []})
const
ConfigValidationResult.failure(List<ConfigValidationError> errors, {List<ConfigValidationWarning> warnings = const []})
Creates a failed validation result.
const
ConfigValidationResult.success({List<ConfigValidationWarning> warnings = const []})
Creates a successful validation result.
const

Properties

errors List<ConfigValidationError>
List of validation errors (if any).
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether the configuration is valid.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
warnings List<ConfigValidationWarning>
List of validation warnings (if any).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited