PermissionWithService class

A special kind of permission, used to access a service.

Additionally to the actions that normal Permissions have, you can also query the status of the related service.

Inheritance
Available extensions

Constructors

PermissionWithService.private(int value)
Creates a PermissionWithService instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isDenied Future<bool>

Available on Permission, provided by the PermissionCheckShortcuts extension

If the user denied this permission.
no setter
isGranted Future<bool>

Available on Permission, provided by the PermissionCheckShortcuts extension

If the user granted this permission.
no setter
isLimited Future<bool>

Available on Permission, provided by the PermissionCheckShortcuts extension

User has authorized this application for limited photo library access. Only supported on iOS.(iOS14+)
no setter
isPermanentlyDenied Future<bool>

Available on Permission, provided by the PermissionCheckShortcuts extension

Returns true when permissions are denied permanently.
no setter
isProvisional Future<bool>

Available on Permission, provided by the PermissionCheckShortcuts extension

If the application is provisionally authorized to post noninterruptive user notifications. Only supported on iOS.
no setter
isRestricted Future<bool>

Available on Permission, provided by the PermissionCheckShortcuts extension

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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceStatus Future<ServiceStatus>

Available on PermissionWithService, provided by the ServicePermissionActions extension

Checks the current status of the service associated with the given Permission.
no setter
shouldShowRequestRationale Future<bool>

Available on Permission, provided by the PermissionActions extension

If you should show a rationale for requesting permission.
no setter
status Future<PermissionStatus>

Available on Permission, provided by the PermissionActions extension

Checks the current status of the given Permission.
no setter
value int
Integer representation of the Permission.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDeniedCallback(FutureOr<void>? callback()?) Permission

Available on Permission, provided by the PermissionActions extension

Method to set a callback for when permission is denied.
onGrantedCallback(FutureOr<void>? callback()?) Permission

Available on Permission, provided by the PermissionActions extension

Method to set a callback for when permission is granted.
onLimitedCallback(FutureOr<void>? callback()?) Permission

Available on Permission, provided by the PermissionActions extension

Method to set a callback for when permission is limited.
onPermanentlyDeniedCallback(FutureOr<void>? callback()?) Permission

Available on Permission, provided by the PermissionActions extension

Method to set a callback for when permission is permanently denied.
onProvisionalCallback(FutureOr<void>? callback()?) Permission

Available on Permission, provided by the PermissionActions extension

Method to set a callback for when permission is provisional.
onRestrictedCallback(FutureOr<void>? callback()?) Permission

Available on Permission, provided by the PermissionActions extension

Method to set a callback for when permission is restricted.
request() Future<PermissionStatus>

Available on Permission, provided by the PermissionActions extension

Request the user for access to this Permission, if access hasn't already been grant access before.
toString() String
A string representation of this object.
inherited

Operators

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