# getExpiryDate static method

String getExpiryDate()

Retrieves the license expiry date.

return The license expiry date. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    static String getExpiryDate() {
      Pointer<Char> pExpiryDate = calloc.allocate(256);
      Pointer<Int> pExpiryDateSize = calloc.allocate(1);
      pExpiryDateSize[0] = 256;
      try {
        var err = biosealSDK.id3BiosealLicense_GetExpiryDate(pExpiryDate, pExpiryDateSize);
        if (err == BiosealError.insufficientBuffer.value) {
          calloc.free(pExpiryDate);
          pExpiryDate = calloc.allocate(pExpiryDateSize.value);
          err = biosealSDK.id3BiosealLicense_GetExpiryDate(pExpiryDate, pExpiryDateSize);
          if (err != BiosealError.success.value) {
            throw BiosealException(err);
          }
        }
        final vExpiryDate = utf8.decode(Uint8List.fromList(pExpiryDate.cast<Uint8>().asTypedList(pExpiryDateSize.value)));
        return vExpiryDate;
      } finally {
        calloc.free(pExpiryDate);
        calloc.free(pExpiryDateSize);
      }
    }