The openAppSettings function returns a boolean, but using Permission.location.onDeniedCallback and the other callbacks does not seem to achieve this goal.
I have read the solution based on WidgetsBindingObserver and it obviously work but it seems a workaround.
Is there a more direct way to detect changes in the permission state based only on permission_handler package?
Please check the following before submitting a new issue.
Please select for which platform(s) you need help
Your question
I need to track the changes on permissions.
The openAppSettings function returns a boolean, but using Permission.location.onDeniedCallback and the other callbacks does not seem to achieve this goal.
I have read the solution based on WidgetsBindingObserver and it obviously work but it seems a workaround.
Is there a more direct way to detect changes in the permission state based only on permission_handler package?
Version
11.3.1