dispose static method
void
dispose()
Dispose resources and clean up
Should be called when the scanner is no longer needed
Implementation
static void dispose() {
_isInitialized = false;
_currentStatus = ScannerStatus.uninitialized;
_scanResultController?.close();
_scanResultController = null;
_statusController?.close();
_statusController = null;
}