stop method

Future<void> stop()

Implementation

Future<void> stop() async {
  if (onImageListener == null || imageSubscription == null) {
    return;
  }
  _analysisEnabled = false;
  await CamerawesomePlugin.stopAnalysis();
  imageSubscription?.cancel();
  imageSubscription = null;
}