# getTslUrl method

String? getTslUrl()

Gets the the URL to the TSL (Trust Service List).

return The URL to the TSL (Trust Service List). throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    String? getTslUrl() {
      Pointer<Char> pTslUrl = nullptr;
      Pointer<Int> pTslUrlSize = calloc.allocate(1);
      pTslUrlSize[0] = -1;
      try {
        var err = biosealSDK.id3Bioseal_GetTslUrl(_pHandle.value, pTslUrl, pTslUrlSize);
        if (err == BiosealError.objectDoesNotExist.value) {
          return null;
        }
        if (err == BiosealError.insufficientBuffer.value) {
          pTslUrl = calloc.allocate(pTslUrlSize.value);
          err = biosealSDK.id3Bioseal_GetTslUrl(_pHandle.value, pTslUrl, pTslUrlSize);
          if (err != BiosealError.success.value) {
            throw BiosealException(err);
          }
        }
        final vTslUrl = utf8.decode(Uint8List.fromList(pTslUrl.cast<Uint8>().asTypedList(pTslUrlSize.value)));
        return vTslUrl;
      } finally {
        calloc.free(pTslUrl);
        calloc.free(pTslUrlSize);
      }
    }