SubmissionRequirement constructor
SubmissionRequirement({
- required SubmissionRequirementRule rule,
- String? from,
- List<
SubmissionRequirement> ? fromNested, - String? name,
- String? purpose,
- int? max,
- int? count,
- int? min,
Implementation
SubmissionRequirement(
{required this.rule,
this.from,
this.fromNested,
this.name,
this.purpose,
this.max,
this.count,
this.min}) {
if (from == null && fromNested == null) {
throw FormatException('Need either from or fromNested');
}
if (from != null && fromNested != null) {
throw FormatException('Do nut use from and fromNested together');
}
}