ValidationRule constructor

ValidationRule({
  1. int impact = 1,
  2. double minimumScore = 1.0,
  3. required bool mandatory,
  4. String? name,
})

Default constructor, define the impact, the minimumScore and the name of this rule. Also define if the rule is mandatory or not.

Implementation

ValidationRule({
  this.impact = 1,
  this.minimumScore = 1.0,
  required this.mandatory,
  this.name,
});