isPermanentlyDenied property

bool get isPermanentlyDenied

If the permission to the requested feature is permanently denied, the permission dialog will not be shown when requesting this permission. The user may still change the permission status in the settings.

On Android: Only returned as the result of a request, never by a status check. Android offers no API to tell a permanently denied permission apart from one that was never requested or that the user reset to 'Ask every time' in the app settings, so status reports denied for all of them. Requesting a permanently denied permission resolves immediately, without showing a dialog, to this status. Android 11+ (API 30+): the user denied the permission for a second time. Below Android 11 (API 30): the user denied access to the requested feature and selected to never again show a request.

On iOS: If the user has denied access to the requested feature.

Implementation

bool get isPermanentlyDenied => this == PermissionStatus.permanentlyDenied;