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
-
isPermissionIsGranted(
{required Permission permission}) → dynamic - 查看权限是否存在
-
openSystemAppSettings(
) → dynamic - 打开系统权限界面
-
requestPermission(
{required Function callback}) → Future< void> -
requestPermissionAll(
{required Function callback}) → Future< void> -
requestPermissionNew(
{required List< Permission> permissions, bool isJustForAndroid = true}) → Future<Map< Permission, PermissionStatus> ?> - 申请权限 (默认仅仅申请Android权限,Ios不需要) here is the most simple example