subscribeOnAudioRouteEvents method

  1. @override
Stream<AudioRouteEvent> subscribeOnAudioRouteEvents()
override

Stream of messages about changes in audio routes

Implementation

@override
Stream<AudioRouteEvent> subscribeOnAudioRouteEvents() {
  return _audioRouteEventChannel.receiveBroadcastStream().map(
      (event) => AudioRouteEvent.fromMap(event: event as Map<Object?, Object?>));
}