permission_guard library

Classes

Permission
Defines the permissions which can be checked and requested.
PermissionGuard
Guardian widget, that assures that given permission is granted or sufficient.
PermissionGuardLoadingIndicator
Default loading indicator widget for PermissionGuard.
PermissionGuardOptions
Customization options for PermissionGuard widget.
PermissionWithService
A special kind of permission, used to access a service.

Enums

PermissionStatus
Defines the state of a Permission.
ServiceStatus
Defines the different states a service can be in.

Extensions

FuturePermissionStatusGetters on Future<PermissionStatus>
Utility getter extensions for the Future<PermissionStatus> type.
FutureServiceStatusGetters on Future<ServiceStatus>
Utility getter extensions for the Future<ServiceStatus> type.
PermissionActions on Permission
Actions that can be executed on a permission.
PermissionCheckShortcuts on Permission
Shortcuts for checking the status of a Permission.
PermissionGuardDefaultValuesExtension on PermissionStatus
Extension used to provide default (non translated) values for UI elements, such as: PermissionGuardTitle, description and action labels.
PermissionListActions on List<Permission>
Actions that can be taken on a List of Permissions.
PermissionStatusGetters on PermissionStatus
Utility getter extensions for the PermissionStatus type.
RequestGuardedMethodExtension on Permission
Helper extension hat provide methods to safely request permissions.
ServicePermissionActions on PermissionWithService
Actions that apply only to permissions that have an associated service.
ServiceStatusGetters on ServiceStatus
Utility getter extensions for the ServiceStatus type.

Functions

openAppSettings() Future<bool>
Opens the app settings page.