EasyPermissionValidator class
Constructors
- EasyPermissionValidator({required BuildContext context, required String appName, Widget? customDialog, Color? appNameColor, String? cancelText, String? enableLocationMessage, String? goToSettingsText, String? permissionSettingsMessage})
- Caution: Some permissions must be in the privacy policy
Properties
- appName ↔ String
-
App title to show in the standard popup
getter/setter pair
- appNameColor ↔ Color?
-
App title Color to show in the standard popup
getter/setter pair
- cancelText ↔ String?
-
Optional in case you need to use other languages
getter/setter pair
- context ↔ BuildContext
-
getter/setter pair
- customDialog ↔ Widget?
-
You can change the standard popup if you need
getter/setter pair
- enableLocationMessage ↔ String?
-
Optional in case you need to use other languages
getter/setter pair
- goToSettingsText ↔ String?
-
Optional in case you need to use other languages
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- permissionSettingsMessage ↔ String?
-
Optional in case you need to use other languages
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accessNotificationPolicy(
) → Future< bool> -
activityRecognition(
) → Future< bool> -
appTrackingTransparency(
) → Future< bool> -
bluetooth(
) → Future< bool> -
bluetoothAdvertise(
) → Future< bool> -
bluetoothConnect(
) → Future< bool> -
bluetoothScan(
) → Future< bool> -
calendar(
) → Future< bool> -
camera(
) → Future< bool> -
contacts(
) → Future< bool> -
criticalAlerts(
) → Future< bool> -
ignoreBatteryOptimizations(
) → Future< bool> -
location(
) → Future< bool> - The best option for LOCATION request
-
locationAlways(
) → Future< bool> -
locationWhenInUse(
) → Future< bool> -
manageExternalStorage(
) → Future< bool> -
mediaLibrary(
) → Future< bool> -
microphone(
) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notification(
) → Future< bool> -
phone(
) → Future< bool> -
photos(
) → Future< bool> -
reminders(
) → Future< bool> -
requestInstallPackages(
) → Future< bool> -
sensors(
) → Future< bool> -
sms(
) → Future< bool> -
speech(
) → Future< bool> -
storage(
) → Future< bool> -
systemAlertWindow(
) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited