addViolation method
Add a fully customizable violation
Implementation
void addViolation({
required dynamic value,
required String fieldName,
required String message,
}) {
constrainViolations.add(
ConstrainViolation(
value: value,
fieldName: fieldName,
message: message,
),
);
}