ConstraintViolation constructor

ConstraintViolation({
  1. String? msgFormat,
  2. Iterable<String>? param,
  3. FieldPath? fieldPath,
  4. Any? fieldValue,
  5. Iterable<ConstraintViolation>? violation,
  6. String? typeName,
})

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;
}