ByteList.decodeWithConstraint constructor

ByteList.decodeWithConstraint(
  1. String encodedString, {
  2. Encoder coder = decoder,
  3. required int constraintLength,
})

Decoding encoded string to a ByteList with the expected length of the encoded bytes.

Implementation

ByteList.decodeWithConstraint(String encodedString,
    {Encoder coder = decoder, required int constraintLength})
    : this.withConstraint(coder.decode(encodedString),
          constraintLength: constraintLength);