core/permissions/permission_manager library

Typedefs

PermissionExplanationCallback = Future<bool> Function(BuildContext context, PermissionType permission)
A caller-supplied replacement for the built-in explanation dialog shown before a single PermissionType is requested. Return true to proceed with the OS request, false to treat it as a decline without ever prompting the OS. context is the same context the request was made with (or the manager's tracked fallback context) — already known to be valid at the point this is called.
PermissionGroupExplanationCallback = Future<bool> Function(BuildContext context, PermissionGroup group)
Same as PermissionExplanationCallback, but for a whole PermissionGroup requested together.