PermissionDef class abstract

Base class for all permission definitions.

Implementers

Constructors

PermissionDef(String key, {required String group, required Set<String> keywords, required String platform, Set<String>? docNotes, AssociatedService? service})
Default constructor.
const

Properties

docNotes → Set<String>?
Additional notes for documentation purposes.
final
group → String
The group this permission belongs to (e.g., 'Camera', 'Location').
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
The unique key for the permission (e.g., 'android.permission.CAMERA' or 'NSCameraUsageDescription').
final
keywords → Set<String>
Keywords used to search for this permission.
final
name → String
Returns the name (key) of the permission.
no setter
platform → String
The platform this permission applies to ('android' or 'ios').
final
promptNote → String?
Returns a note to prompt the user with, if applicable (e.g., version constraints).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
service → AssociatedService?
The service associated with this permission, if any.
final

Methods

matches(String input) → bool
Checks if the input string matches this permission's key or common aliases.
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