ReqLen.max constructor Null safety

  1. int max,
  2. {String? blank,
  3. String? long}

Constrains the length or number of data items to a maximum amount.

max the minimum number of items; it must be > 0. blank the error message in case of a null or empty input value. long the error message if the length > max.


ReqLen.max(int max, {String? blank, String? long})
    : _reqLenVal = Pair(Req(blank: blank), Len.max(max, long: long));