documentFileFromUri method

  1. @override
Future<SafDocumentFile?> documentFileFromUri(
  1. String uri,
  2. bool isDir
)
override

Implementation

@override
Future<SafDocumentFile?> documentFileFromUri(String uri, bool isDir) async {
  final map = await methodChannel.invokeMapMethod<String, dynamic>(
    'documentFileFromUri',
    {'uri': uri, 'isDir': isDir},
  );
  if (map == null) {
    return null;
  }
  return SafDocumentFile.fromMap(map);
}