updateSubtitleUrl method

void updateSubtitleUrl({
  1. required String url,
})

Implementation

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