onMediaItemClear method

Future<void> onMediaItemClear(
  1. MediaItem item
)

This function can be used to clean up resources associated with a media item upon clearing it.

Implementation

Future<void> onMediaItemClear(MediaItem item) async {}