AbstractValidator<T> class abstract

Constructors

AbstractValidator()
Initialize errors and rules objects

Properties

allErrors List<String?>
getter/setter pair
errors String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
instance ↔ T?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

concatenatedErrors(List<ValidationResult> list) String
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().
getErrors(List<ValidationResult> list) → dynamic
List all errors
isValid() bool
Returs entity is valid or not
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ruleFor(String key, dynamic func(T e)) → RuleBuilder
Create a container to hold rules for a property. The value of the property should be returned by the passed in Function
toString() String
A string representation of this object.
inherited
validate(T object) List<ValidationResult>
Validate all rules
validateRuleFor(T object, String key) → ValidationResult
Validate all rules associated with the passed in key

Operators

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