initSubtitles method

Future<void> initSubtitles({
  1. required Emitter<SubtitleState> emit,
})

Implementation

Future<void> initSubtitles({
  required Emitter<SubtitleState> emit,
}) async {
  emit(SubtitleInitializing());
  subtitles = await subtitleRepository.getSubtitles();
  emit(SubtitleInitialized());
}