getOverrideThumbnailFilename method

String getOverrideThumbnailFilename(
  1. {required AppModel appModel,
  2. required MediaItem item}
)

The map value used to store the override thumbnail of an item.

Implementation

String getOverrideThumbnailFilename({
  required AppModel appModel,
  required MediaItem item,
}) {
  String key =
      '${item.mediaIdentifier}/${item.mediaSourceIdentifier}/override_thumbnail';
  String basename = key.hashCode.toString();
  String filename = path.join(appModel.thumbnailsDirectory.path, basename);

  return filename;
}