PermissionState enum

Android: The effective values are authorized or denied.

iOS/macOS: All values are valid.

See document of Apple

Inheritance

Constructors

PermissionState()
const

Values

notDetermined → const PermissionState

The user hasn’t set the app’s authorization status.

restricted → const PermissionState

The app isn’t authorized to access the photo library, and the user can’t grant such permission.

denied → const PermissionState

The user explicitly denied this app access to the photo library.

authorized → const PermissionState

The user explicitly granted this app access to the photo library.

limited → const PermissionState

The user authorized this app for limited photo library access.

The state is only support iOS 14 or higher.

Properties

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