setSubtitleItems method

void setSubtitleItems(
  1. {required String videoId,
  2. required List<String> subtitles}
)

Set cached item.

Implementation

void setSubtitleItems(
    {required String videoId, required List<String> subtitles}) async {
  await setPreference<List<String>?>(
    key: 'subtitles_cache/$videoId',
    value: subtitles,
  );
}