outputLevels property
Broadcast stream of output peak updates.
Each event represents the most recent normalized stereo peaks emitted by the native output meter.
Implementation
@override
Stream<AudioLevels> get outputLevels =>
_levels ??= eventChannel.receiveBroadcastStream().map((dynamic event) =>
AudioLevels.fromMap(event as Map<dynamic, dynamic>));