NumRangeValidator constructor

const NumRangeValidator(
  1. String name, {
  2. required num min,
  3. required num max,
})

name is split using '.' and the map is traversed sequentially until the value is returned. Will Validate if that value is not true.

min and max set the range, both inclusive.

Implementation

const NumRangeValidator(
  this.name, {
  required this.min,
  required this.max,
}) : assert(min <= max, 'Min must be less or equal than Max!');