SuperEasyPermissions class Null safety
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Static Methods
-
askPermission(
Permissions permission) → Future< bool> - Asks(request) for permission and return true if granted, otherwise returns false. If the permission is permanently denied, This will open the settings
-
getPermissionResult(
Permissions permission) → Future< int> - Return 1 if permission is granted, return 0 if denied, return -1 if user set to don't ask again
-
isDenied(
Permissions permission) → Future< bool> - returns true if permission is temporary or permanently denied, otherwise returns false.
-
isGranted(
Permissions permission) → Future< bool> - returns true if permission is granted, otherwise return false
-
isPermanentlyDenied(
Permissions permission) → Future< bool> - returns true if permission is permanently denied, otherwise return false