audio_service icon indicating copy to clipboard operation
audio_service copied to clipboard

MediaItem.extras should be Object?

Open khensolomon opened this issue 3 years ago • 1 comments

Feature proposal

I wish that the MediaItem property extras should be Object?. So that we don't have to convert the data back and forth.

final Map<String, dynamic>? extras;

Motivating use case(s)

In my case of playlist, I have the need of the current playing MediaItem is notify in other music list, so user know what it is playing when browsing.

Also type Map<String, dynamic>? can be provided in Object?. I am thinking it is more flexible.

khensolomon avatar Feb 16 '22 21:02 khensolomon

Extras must be a map because it corresponds to the Android API is is named after which is also a map.

ryanheise avatar Feb 17 '22 01:02 ryanheise