PermissionRequestConfig class
Configuration for permission request behavior.
Constructors
- PermissionRequestConfig.new({bool requestCriticalAlerts = false, bool requestExactAlarms = true, bool showRationale = true, bool autoRetry = false, int maxRetries = 2, PermissionFailureCallback? onPermissionFailure, bool autoOfferSettings = false, int retryDelayMs = 1000})
-
Creates a permission request configuration.
const
Properties
- autoOfferSettings → bool
-
Whether to automatically offer settings navigation
final
- autoRetry → bool
-
Whether to auto-retry on permission denial
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRetries → int
-
Maximum number of retry attempts
final
- onPermissionFailure → PermissionFailureCallback?
-
Callback for handling permission failures
final
- requestCriticalAlerts → bool
-
Whether to request critical alerts on iOS
final
- requestExactAlarms → bool
-
Whether to request exact alarm permissions
final
- retryDelayMs → int
-
Delay in milliseconds before retry attempts
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Whether settings navigation is enabled
final
- showRationale → bool
-
Whether to show rationale before requesting
final
Methods
-
copyWith(
{bool? requestCriticalAlerts, bool? requestExactAlarms, bool? showRationale, bool? autoRetry, int? maxRetries, PermissionFailureCallback? onPermissionFailure, bool? autoOfferSettings, int? retryDelayMs}) → PermissionRequestConfig - Creates a copy with updated values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited