PermissionCheckShortcuts extension

Shortcuts for checking the status of a Permission.

on

Properties

isDenied Future<bool>
If the user denied this permission.
no setter
isGranted Future<bool>
If the user granted this permission.
no setter
isLimited Future<bool>
User has authorized this application for limited photo library access. Only supported on iOS.(iOS14+)
no setter
isPermanentlyDenied Future<bool>
If the user denied this permission and selected to never again show a request for it. The user may still change the permission's status in the device settings. Only supported on Android.
no setter
isRestricted Future<bool>
If the OS denied this permission. The user cannot change the status, possibly due to active restrictions such as parental controls being in place. Only supported on iOS.
no setter