ASN1Sequence.fromBytes constructor

ASN1Sequence.fromBytes(
  1. Uint8List encodedBytes
)

Creates an ASN1Sequence entity from the given encodedBytes.

Implementation

ASN1Sequence.fromBytes(Uint8List super.encodedBytes) : super.fromBytes() {
  elements = [];
  var parser = ASN1Parser(valueBytes);
  while (parser.hasNext()) {
    elements!.add(parser.nextObject());
  }
}