PermissionDialogConfig class

Configuration for customizing the permission dialog appearance and content.

Constructors

PermissionDialogConfig({String? title, String? description, Widget? icon, Color? iconBackgroundColor, String confirmLabel = 'Allow', String cancelLabel = 'Not Now', List<String>? usageReasons})
const

Properties

cancelLabel → String
Label for the cancel/deny button.
final
confirmLabel → String
Label for the confirm/allow button.
final
description → String?
Description text explaining why the permission is needed.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget?
Custom icon widget. If null, a default icon based on permission type is used.
final
iconBackgroundColor → Color?
Background color of the icon container. Defaults to the permission's accent color.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
Title displayed at the top of the dialog.
final
usageReasons → List<String>?
Whether to show a list of what the app will use the permission for.
final

Methods

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