HighlightingController constructor
HighlightingController({
- required QuranRepository repository,
- required SherpaEngine engine,
- VoidCallback? onAyahChanged,
- bool isTajweed = true,
- 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();
}