Skip to content

Commit

Permalink
(#50) Warn that DocumentFileColumn.id is optional on listFiles docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrintt committed May 31, 2022
1 parent 2881d11 commit ce1d518
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/Usage/Storage Access Framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ if (grantedUri != null) {

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

> **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`).
```dart
/// *Must* be a granted uri from `openDocumentTree`
final Uri myGrantedUri = ...
Expand All @@ -83,7 +85,7 @@ const List<DocumentFileColumn> columns = <DocumentFileColumn>[
DocumentFileColumn.displayName,
DocumentFileColumn.size,
DocumentFileColumn.lastModified,
DocumentFileColumn.id,
DocumentFileColumn.id, // Optional column, will be available/queried regardless if is or not included here
DocumentFileColumn.mimeType,
];
Expand Down

0 comments on commit ce1d518

Please sign in to comment.