pickDirectory method
Implementation
@override
Future<SafDocumentFile?> pickDirectory(
{String? initialUri,
bool? writePermission,
bool? persistablePermission}) async {
final map =
await methodChannel.invokeMapMethod<String, dynamic>('pickDirectory', {
'initialUri': initialUri,
'writePermission': writePermission,
'persistablePermission': persistablePermission,
});
if (map == null) {
return null;
}
return SafDocumentFile.fromMap(map);
}