version property

int? version

Gets the version (version number) value from the certificate.

Implementation

int? get version {
  if (block1 != null) {
    var v = firstLeafValue(block: block1!);
    if (v is List<int>) {
      var index = toIntValue(v);
      if (index != null) {
        return index.toInt() + 1;
      }
    }
  }
  return null;
}