releaseArtifact method

void releaseArtifact({
  1. required int sessionId,
  2. required int artifactId,
})

Implementation

void releaseArtifact({required int sessionId, required int artifactId}) {
  _validateId(sessionId, 'session id');
  _validateId(artifactId, 'artifact id');
  final errorOut = calloc<_RitoOwnedBuffer>();
  try {
    final status = _release(sessionId, artifactId, errorOut);
    if (status != 0) {
      throw _nativeError(status, errorOut);
    }
  } finally {
    _bufferFree(errorOut);
    calloc.free(errorOut);
  }
}