pickDirectory method

  1. @override
Future<SafDocumentFile?> pickDirectory({
  1. String? initialUri,
  2. bool? writePermission,
  3. bool? persistablePermission,
})
override

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