ConstraintValidatorContext class

Constructors

ConstraintValidatorContext({required Valid parent, List<ConstrainViolation>? constrainViolations, bool concatParentName = true})

Properties

concatParentName bool
final
constrainViolations List<ConstrainViolation>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
parent Valid
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templateViolations List<String>
getter/setter pair

Methods

addTemplateViolation(String message) → void
Add a default violation that will be completed with the default value and field name
addViolation({required dynamic value, required String fieldName, required String message}) → void
Add a fully customizable violation
hasAnyViolations() bool
isValid() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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