getVolume method Null safety
- AudioDeviceType audioDeviceType
Returns the current volume for the given audio device type.
Implementation
static Future<double> getVolume(AudioDeviceType audioDeviceType) async {
final Map<String, dynamic> arguments = {'deviceType': audioDeviceType.index};
final result = await audioMethodChannel.invokeMethod<double>('getAudioVolume', arguments);
return result as double;
}