getCurrentInputDevice method
Returns the current input device used by the plugin, if known.
Implementation
@override
Future<AudioInputDevice?> getCurrentInputDevice() async {
final device =
await methodChannel.invokeMethod<dynamic>('getCurrentInputDevice');
if (device == null) {
return null;
}
return AudioInputDevice.fromMap(device as Map<dynamic, dynamic>);
}