setSubtitleMetadata method

void setSubtitleMetadata(
  1. {required String videoId,
  2. required List<String> metadata}
)

Set cached item.

Implementation

void setSubtitleMetadata(
    {required String videoId, required List<String> metadata}) async {
  await setPreference<List<String>?>(
    key: 'subtitle_metadata_cache/$videoId',
    value: metadata,
  );
}