ReqHex.len constructor

ReqHex.len(
  1. int len, {
  2. String? blank,
  3. String? mal,
  4. String? diff,
})

Constrains the input data to hexadecimal digits and its length to len hex-digits.

len the number of hex-digits; it must be > 0. blank the error message in case of a null or empty input value. mal the error message if non-hex-digit characters are found. diff the error message if the number of hex-digits is different from len.

Implementation

ReqHex.len(int len, {String? blank, String? mal, String? diff})
    : _reqHex = Pair.str2(
        Req(blank: blank).call,
        Hex.len(len, mal: mal, diff: diff).call,
      );