child function

  1. @willbemovedsoon
Future<DocumentFile?> child(
  1. Uri uri,
  2. String path, {
  3. bool requiresWriteAccess = false,
})

Return the child of the given uri if it exists otherwise null.

It's faster than DocumentFile.findFile path is the single file name or file path. Empty string returns to itself.

Equivalent to DocumentFile.child extension/overload.

Refer to details

Implementation

@willbemovedsoon
Future<DocumentFile?> child(
  Uri uri,
  String path, {
  bool requiresWriteAccess = false,
}) async {
  final args = <String, dynamic>{
    'uri': '$uri',
    'path': path,
    'requiresWriteAccess': requiresWriteAccess,
  };

  return invokeMapMethod('child', args);
}