AnalysisController.fromPlugin constructor

AnalysisController.fromPlugin({
  1. OnImageForAnalysis? onImageListener,
  2. required AnalysisConfig? conf,
})

Implementation

factory AnalysisController.fromPlugin({
  OnImageForAnalysis? onImageListener,
  required AnalysisConfig? conf,
}) =>
    AnalysisController._(
      onImageListener: onImageListener,
      conf: conf ?? AnalysisConfig(),
      images$: CamerawesomePlugin.listenCameraImages(),
      analysisEnabled: conf?.autoStart ?? true,
    );