openAudioFilePicker method

  1. @override
Future<String?> openAudioFilePicker()
override

This method is used to open the audio file picker only for the android platform.

Implementation

@override
Future<String?> openAudioFilePicker() async {
  String? res;
  try {
    res = await mirrorFlyMethodChannel.invokeMethod('openAudioFilePicker');
    LogMessage.d('openAudioFilePicker', '$res');
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}