getDocumentTree method

  1. @override
Future<DocumentTree?> getDocumentTree({
  1. required String uriString,
})
override

Implementation

@override
Future<DocumentTree?> getDocumentTree({required String uriString}) async {
  final string = await methodChannel.invokeMethod<String>('getDocumentTree', {
    "contentUri": uriString,
  });
  var jsonString = (string ?? "");
  if (jsonString.isNotEmpty) {
    return DocumentTree.fromJson(jsonString);
  } else {
    return null;
  }
}