ByteList.decodeWithConstraintRange constructor

ByteList.decodeWithConstraintRange(
  1. String encodedString, {
  2. Encoder coder = decoder,
  3. int min = _minLength,
  4. int max = _maxLength,
})

Decoding encoded string to a ByteList with the expected min and max lengths of the encoded bytes.

Implementation

ByteList.decodeWithConstraintRange(String encodedString,
    {Encoder coder = decoder, int min = _minLength, int max = _maxLength})
    : this.withConstraintRange(coder.decode(encodedString),
          min: min, max: max);