Skip to content

Commit f619efd

Browse files
author
Laks Castro
authored
Merge pull request #99 from lakscastro/bugfix/canread-api-calls-wrong-api
Fix `DocumentFile.canRead` API call
2 parents b2e9352 + 52ba947 commit f619efd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/saf/document_file.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class DocumentFile {
110110
/// Alias/shortname for [openDocumentFile]
111111
Future<bool?> open() => openDocumentFile();
112112

113-
/// {@macro sharedstorage.saf.canWrite}
114-
Future<bool?> canRead() async => saf.canWrite(uri);
113+
/// {@macro sharedstorage.saf.canRead}
114+
Future<bool?> canRead() async => saf.canRead(uri);
115115

116116
/// {@macro sharedstorage.saf.canWrite}
117117
Future<bool?> canWrite() async => saf.canWrite(uri);

0 commit comments

Comments
 (0)