ConstraintViolation constructor
ConstraintViolation({})
Implementation
factory ConstraintViolation({
$core.String? msgFormat,
$core.Iterable<$core.String>? param,
$4.FieldPath? fieldPath,
$1.Any? fieldValue,
$core.Iterable<ConstraintViolation>? violation,
$core.String? typeName,
}) {
final _result = create();
if (msgFormat != null) {
_result.msgFormat = msgFormat;
}
if (param != null) {
_result.param.addAll(param);
}
if (fieldPath != null) {
_result.fieldPath = fieldPath;
}
if (fieldValue != null) {
_result.fieldValue = fieldValue;
}
if (violation != null) {
_result.violation.addAll(violation);
}
if (typeName != null) {
_result.typeName = typeName;
}
return _result;
}