PermissionUtil class
动态授权工具
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
bluetooth(
{double? width}) → Future< bool> - 蓝牙权限
-
camera(
{double? width}) → Future< bool> - 相机权限
-
openSettings(
) → Future< bool> - 打开系统设置
-
photos(
{double? width}) → Future< bool> - 相册权限
-
request(
{required Permission permission, String? title, String? confirmText, required String message, required String error, double? width}) → Future< bool> - 申请权限