ReqHex.max constructor

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

Constrains the input data to hexadecimal digits and its length to a maximum of max hex-digits.

max the maximum 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. long the error message if the input length is longer than max digits.

Implementation

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