AppPermissionActions extension
The short way to use the package — no instance, no setup:
final result = await AppPermission.camera.request();
if (result.isAllowed) openCamera();
if (await AppPermission.location.isAllowed) showMap();
Each call goes through BaabaPermissions.instance, so whatever
BaabaPermissions.init configured applies here too.
Properties
-
isAllowed
→ Future<
bool> -
Available on AppPermission, provided by the AppPermissionActions extension
Whether the feature can be used right now, without asking.no setter
Methods
-
check(
) → Future< PermissionResult> -
Available on AppPermission, provided by the AppPermissionActions extension
The current state, without asking and without UI. -
request(
{BuildContext? context, PermissionRequestOptions? options}) → Future< PermissionResult> -
Available on AppPermission, provided by the AppPermissionActions extension
Runs the full request flow — see BaabaPermissions.request.