PermissionRequestOptions class
Overrides for one request/requestMany call. null keeps the
app-wide PermissionConfig value.
Constructors
-
PermissionRequestOptions({BuildContext? context, bool? showDialogs, RationaleMode? rationaleMode, DialogPolicy? dialogs, PermissionPresentation? presentation, Map<
PermissionDialogKind, PermissionPresentation> ? presentationByKind, Map<AppPermission, PermissionTexts> ? texts, PermissionDialogTheme? theme, PermissionDialogWidgetBuilder? dialogBuilder, PermissionPresenter? presenter, TextDirection? textDirection, int? maxRetries, bool? checkServices, bool? recheckAfterSettings}) -
const
Properties
- checkServices → bool?
-
final
- context → BuildContext?
-
Where to show dialogs. Wins over
PermissionConfig.navigatorKey; ignored once unmounted.final - dialogBuilder → PermissionDialogWidgetBuilder?
-
final
- dialogs → DialogPolicy?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRetries → int?
-
final
- presentation → PermissionPresentation?
-
final
-
presentationByKind
→ Map<
PermissionDialogKind, PermissionPresentation> ? -
final
- presenter → PermissionPresenter?
-
final
- rationaleMode → RationaleMode?
-
final
- recheckAfterSettings → bool?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDialogs → bool?
-
falsesuppresses every dialog, rationale included — a silent request.final - textDirection → TextDirection?
-
Text direction for this call's dialogs; see
PermissionConfig.textDirection.
final
-
texts
→ Map<
AppPermission, PermissionTexts> ? -
Wording for this call only, layered over the app-wide texts — the same
permission often needs a different reason on different screens.
final
- theme → PermissionDialogTheme?
-
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
Constants
- silent → const PermissionRequestOptions
- No dialogs of any kind.