updateSubtitleUrl method

void updateSubtitleUrl({
  1. required String url,
  2. Map<String, String>? headers,
})

Implementation

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