Skip to content

Commit 7d11558

Browse files
authored
Update Storage Access Framework docs - persistedUriPermissions example.md
Fix null check for granted uris
1 parent 8d9c5ee commit 7d11558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/Usage/Storage Access Framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Basically this allow get the **granted** `Uri`s permissions after the app restar
207207
```dart
208208
final List<UriPermission>? grantedUris = await persistedUriPermissions();
209209
210-
if (grantedUris != null) {
210+
if (grantedUris == null) {
211211
print('There is no granted Uris');
212212
} else {
213213
print('My granted Uris: $grantedUris');

0 commit comments

Comments
 (0)