clearOverrideValues method

Future<void> clearOverrideValues(
  1. {required AppModel appModel,
  2. required MediaItem item}
)

Used to clear override values of a MediaItem upon deletion.

Implementation

Future<void> clearOverrideValues({
  required AppModel appModel,
  required MediaItem item,
}) async {
  await deletePreference(key: getOverrideTitleKey(item));
  await setOverrideThumbnailFromMediaItem(
    appModel: appModel,
    item: item,
    file: null,
    clearOverrideImage: true,
  );
}