onChanged property

Stream<VolumeChangedEvent> onChanged
getter/setter pair

A stream of events occurring when the volume level is changed.

Implementation

Stream<VolumeChangedEvent> onChanged = AudioManager._eventChannel
    .receiveBroadcastStream()
    .map((dynamic msg) => VolumeChangedEvent.fromMap(
        (msg as Map<Object?, Object?>).cast<String, dynamic>()));