Skip to content

Commit ce1d518

Browse files
author
LaksCastro
committed
(#50) Warn that DocumentFileColumn.id is optional on listFiles docs
1 parent 2881d11 commit ce1d518

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/Usage/Storage Access Framework.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ if (grantedUri != null) {
6868

6969
This method list files lazily **over a granted uri:**
7070

71+
> **Info** `DocumentFileColumn.id` is optional. It is required to fetch the file list from native API. So it is enabled regardless if you include this column or not. And this applies only to this API (`listFiles`).
72+
7173
```dart
7274
/// *Must* be a granted uri from `openDocumentTree`
7375
final Uri myGrantedUri = ...
@@ -83,7 +85,7 @@ const List<DocumentFileColumn> columns = <DocumentFileColumn>[
8385
DocumentFileColumn.displayName,
8486
DocumentFileColumn.size,
8587
DocumentFileColumn.lastModified,
86-
DocumentFileColumn.id,
88+
DocumentFileColumn.id, // Optional column, will be available/queried regardless if is or not included here
8789
DocumentFileColumn.mimeType,
8890
];
8991

0 commit comments

Comments
 (0)