getCurrentInputDevice method

  1. @override
Future<AudioInputDevice?> getCurrentInputDevice()
override

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>);
}