pause method
Pauses the scanning process.
The highlights and annotations that are already shown are kept, so they stay tappable while the view is paused and when scanning starts again. Resetting or disposing the view removes them.
Added in version 7.1.0
Implementation
Future<void> pause() {
_isStarted = false;
return _controller?.pause() ?? Future.value();
}