From ce1d518d77e218967f07c26df074fe66714b4d3a Mon Sep 17 00:00:00 2001 From: LaksCastro Date: Mon, 30 May 2022 21:33:25 -0300 Subject: [PATCH] (#50) Warn that `DocumentFileColumn.id` is optional on `listFiles` docs --- docs/Usage/Storage Access Framework.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/Usage/Storage Access Framework.md b/docs/Usage/Storage Access Framework.md index 7596ef0..503f2d1 100644 --- a/docs/Usage/Storage Access Framework.md +++ b/docs/Usage/Storage Access Framework.md @@ -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 = ... @@ -83,7 +85,7 @@ const List columns = [ 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, ];