signingTime property Null safety

DateTime? signingTime

The embedded message signature time, if any

Implementation

DateTime? get signingTime {
  for (final attr in signedAttributes) {
    if (attr.key.objectIdentifierAsString == Pkcs.signingTime) {
      final digest = attr.value[0] as ASN1UtcTime;
      return digest.time!;
    }
  }
  return null;
}