getStreamVolumeDb method Null safety

Future<double> getStreamVolumeDb(
  1. AndroidStreamType streamType,
  2. int index,
  3. AndroidAudioDeviceType deviceType
)

(UNTESTED) Requires API level 28

Implementation

Future<double> getStreamVolumeDb(AndroidStreamType streamType, int index,
    AndroidAudioDeviceType deviceType) async {
  return (await _channel.invokeMethod<double>('getStreamVolumeDb', [
    streamType.index,
    index,
    deviceType.index,
  ]))!;
}