sharedMediaStream property
Stream that can be listened to for shared media when the app is already running.
Implementation
@override
Stream<SharedMedia> get sharedMediaStream {
_sharedMediaStream ??=
eventChannel.receiveBroadcastStream().map<SharedMedia>((dynamic event) {
final Map<dynamic, dynamic> map = event as Map<dynamic, dynamic>;
return SharedMedia.decode(map);
});
return _sharedMediaStream!;
}