dispose method
void
dispose()
Release all resources used by this library including the libusb library.
Implementation
void dispose() {
if (_contextPtr != null) {
libusb.libusb_exit(_contextPtr!.value);
_libusb = null;
calloc.free(_contextPtr!);
_contextPtr = null;
if (debugLogging) {
print('uvc: libusb library deinitialized');
}
_lib?.close();
_lib = null;
if (debugLogging) {
print('uvc: library closed');
}
}
UsbStringDescriptor.dispose();
}