PermissionBlockReason enum

Why the permission gate did not pass, i.e. what the user can still do about it.

Inheritance
Available extensions

Values

denied → const PermissionBlockReason

Denied for now, but the OS will show its prompt again on a retry.

permanentlyDenied → const PermissionBlockReason

The OS will not prompt again — only the app's settings screen can change it. On Android this is a second denial or "Don't ask again"; on iOS a single denial is already permanent.

restricted → const PermissionBlockReason

Blocked by device policy or parental controls. The user cannot grant it, so neither a retry nor the settings screen helps.

locationServiceDisabled → const PermissionBlockReason

The device's own location setting is off, so no location can be read whatever the app is allowed. The app's settings page has no switch for it; the device's location settings do.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
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<PermissionBlockReason>
A constant List of the values in this enum, in order of their declaration.