child method

  1. @override
Future<SafDocumentFile?> child(
  1. String uri,
  2. List<String> names
)
override

Implementation

@override
Future<SafDocumentFile?> child(String uri, List<String> names) async {
  if (names.isEmpty) {
    throw ArgumentError('names must not be empty');
  }
  final map = await methodChannel.invokeMapMethod<String, dynamic>(
    'child',
    {'uri': uri, 'names': names},
  );
  if (map == null) {
    return null;
  }
  return SafDocumentFile.fromMap(map);
}