updateSubtitleContent method

void updateSubtitleContent({
  1. required String content,
})

Implementation

void updateSubtitleContent({
  required String content,
}) {
  if (_attached) {
    subtitlesContent = content;
    _subtitleBloc!.add(
      InitSubtitles(
        subtitleController: this,
      ),
    );
  } else {
    throw Exception('Seems that the controller is not correctly attached.');
  }
}