releasePersistedPermissionFor static method
Will revoke an persistable URI
Call this when your App no longer wants the permission of an Directory returned
by getDirectoryPermission
method
To get the current persisted Directorys call getDirectoryPermission
Implementation
static Future<void> releasePersistedPermissionFor(String? directory) async {
if (directory != null) {
await releasePersistableUriPermission(
makeUriString(path: directory, isTreeUri: true));
}
}