crls property Null safety

Iterable<CertificateRevocationList> crls

The certificate revocation lists of the message.

Implementation

Iterable<CertificateRevocationList> get crls sync* {
  if (_crl == null) {
    return;
  }

  var o = 0;
  while (o < _crl!.valueByteLength!) {
    final c = ASN1Parser(_crl!.valueBytes!.sublist(o)).nextObject();
    yield CertificateRevocationList(c as ASN1Sequence);
    o += c.encodedBytes!.lengthInBytes;
  }
}