cancel method

Future<void> cancel()

Stops the video feed and analyzer

Implementation

Future<void> cancel() async {
  barCodeReader.stop();
  await _barCodeStreamSubscription?.cancel();
  _barCodeStreamSubscription = null;
}