PermissionActions extension

Actions that can be executed on a permission.

on

Properties

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

Methods

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.