HighlightingController constructor

HighlightingController({
  1. required QuranRepository repository,
  2. required SherpaEngine engine,
  3. VoidCallback? onAyahChanged,
  4. bool isTajweed = true,
  5. TrackerConfig config = const TrackerConfig(),
})

Implementation

HighlightingController({
  required this.repository,
  required SherpaEngine engine,
  this.onAyahChanged,
  this.isTajweed = true,
  this.config = const TrackerConfig(),
}) : _engine = engine {
  _tokenProcessor = AsrTokenProcessor(config: config);
  _initIsolate();
  _engineSub = _engine.transcriptionStream.listen(_onResult);
  reset();
}