changeSubtitle method
Future<void>
changeSubtitle({
- required VideoViewerSubtitle? subtitle,
- required String subtitleName,
Implementation
Future<void> changeSubtitle({
required VideoViewerSubtitle? subtitle,
required String subtitleName,
}) async {
_activeSubtitle = subtitleName;
_activeSubtitleData = null;
_subtitle = subtitle;
if (subtitle != null) await _subtitle!.initialize();
notifyListeners();
}