PermissionStatus enum

Defines the state of a Permission.

Constants

denied → const PermissionStatus

The user denied access to the requested feature.

const PermissionStatus(2)
granted → const PermissionStatus

The user granted access to the requested feature.

const PermissionStatus(1)
permanentlyDenied → const PermissionStatus

The user denied access to the requested feature and selected to never again show a request for this permission. The user may still change the permission status in the settings. Only supported on Android.

const PermissionStatus(4)
restricted → const PermissionStatus

The OS denied access to the requested feature. The user cannot change this app's status, possibly due to active restrictions such as parental controls being in place. Only supported on iOS.

const PermissionStatus(3)
undetermined → const PermissionStatus

The permission wasn't requested yet.

const PermissionStatus(0)
values → const List<PermissionStatus>

A constant List of the values in this enum, in order of their declaration.

const List<PermissionStatus>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited