getAndroidDirectoryFromFolderType method
Implementation
Future<Directory?> getAndroidDirectoryFromFolderType(
String folderType) async {
final String? directoryPath = await methodChannel.invokeMethod<String>(
'getExternalStoragePublicDirectory',
{'type': folderType},
);
if (directoryPath == null) {
return null;
}
return Directory(directoryPath);
}