BitString.fromEncoded constructor

BitString.fromEncoded(
  1. String encodedData
)

Implementation

factory BitString.fromEncoded(String encodedData) {
  var data = Uint8List.fromList(
      gzip.decode(base64Decode(addPaddingToBase64(encodedData))));
  var length = data.length * 8;

  return BitString(length, data);
}