ValidationResult constructor

ValidationResult({
  1. Iterable<ValidationError>? validationErrors,
})

Implementation

factory ValidationResult({
  $core.Iterable<ValidationError>? validationErrors,
}) {
  final _result = create();
  if (validationErrors != null) {
    _result.validationErrors.addAll(validationErrors);
  }
  return _result;
}