PermissionService class
Centralized permission handling for the chat package.
Wraps permission_handler so the rest of the package never deals with
platform/version specifics (e.g. Android 13+ photo permission vs legacy
storage). Each method requests the relevant permission and returns whether
it was granted, opening the app settings when a permission is permanently
denied.
Constructors
- PermissionService()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestCamera(
) → Future< bool> - Requests camera access (needed for the in-app camera).
-
requestGallery(
) → Future< bool> - Requests access to the photo/gallery library.
-
requestMicrophone(
) → Future< bool> - Requests microphone access (needed to record voice notes).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited