getOverrideTitleFromMediaItem method

String? getOverrideTitleFromMediaItem(
  1. MediaItem item
)

Given a MediaItem, return its override display title.

Implementation

String? getOverrideTitleFromMediaItem(MediaItem item) {
  if (!item.canEdit) {
    return null;
  }

  String key = getOverrideTitleKey(item);
  String? overrideTitle =
      getPreference<String?>(key: key, defaultValue: null);
  return overrideTitle;
}