setAudioPath method

Future<void> setAudioPath()

Implementation

Future<void> setAudioPath() async {
  Directory? directory = Platform.isAndroid
      ? await getExternalStorageDirectory() //FOR ANDROID
      : await getApplicationSupportDirectory(); //FOR iOS
  if (directory != null) {
    audioSavePath = directory.path;
    debugPrint(audioSavePath);
  } else {
    debugPrint("=======Unable to set Audio Path=========");
  }
}