PermissionGrant enum
- Inheritance
- Available extensions
Values
- granted → const PermissionGrant
-
The permission has been granted by the user.
- denied → const PermissionGrant
-
The permission has been denied but can be requested again.
- permanentlyDenied → const PermissionGrant
-
The user selected "Don't ask again" — must go to Settings.
- restricted → const PermissionGrant
-
The OS restricts this permission (e.g., parental controls on iOS).
- limited → const PermissionGrant
-
Partial access was granted (e.g., iOS limited photo library).
- notApplicable → const PermissionGrant
-
This permission concept does not exist on the current platform.
- notAvailable → const PermissionGrant
-
The permission exists on this platform but not on the running OS version.
For example,
POST_NOTIFICATIONSon Android < 33, orAppTrackingTransparencyon iOS < 14. - provisional → const PermissionGrant
-
iOS provisional notification authorization (delivers quietly).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isDenied → bool
-
Available on PermissionGrant, provided by the PermissionGrantStatus extension
User (or OS) said no, in any form. Mutually exclusive with isSatisfied and isUnsupported.no setter - isSatisfied → bool
-
Available on PermissionGrant, provided by the PermissionGrantStatus extension
Grant is usable: the caller may proceed with the gated operation.no setter - isTerminal → bool
-
Available on PermissionGrant, provided by the PermissionGrantStatus extension
Requesting this permission is a no-op: either the OS will refuse to prompt (permanentlyDenied,restricted) or the concept doesn't exist here (notApplicable,notAvailable).no setter - isUnsupported → bool
-
Available on PermissionGrant, provided by the PermissionGrantStatus extension
The permission cannot be exercised on this platform / OS version.no setter - name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
PermissionGrant> - A constant List of the values in this enum, in order of their declaration.