onPlayerChanged property
Stream<void>
get
onPlayerChanged
Stream that emits when the current player changes.
Listen to this stream and cancel the subscription when done to avoid memory leaks:
final sub = AudioManager().onPlayerChanged.listen((_) { ... });
// Later:
sub.cancel();
Implementation
Stream<void> get onPlayerChanged => _playerChangedController.stream;