Hex.max constructor

Hex.max(
  1. int max, {
  2. String? mal,
  3. String? long,
})

Constrains the input data to the hex-digits 0-9A–F and its length (number of hex-digits) to a maximum of max hex-digits.

max the maximum number of hex-digits; it must be > 0. mal the error message if non-hex characters are found; the default value is 'non-hex-digit character(s) found'. long the error message if the input length is longer than max digits.

Implementation

Hex.max(int max, {String? mal, String? long})
    : assert(max > 0),
      _valHex = _HexImpl(mal, Len.max(max, long: long).call).call;