requestPermission function

Future<bool> requestPermission({
  1. required Permission permission,
  2. String? title,
  3. String? confirmText,
  4. required String message,
  5. required String error,
})

申请权限

Implementation

Future<bool> requestPermission({
  required Permission permission,
  String? title,
  String? confirmText,
  required String message,
  required String error,
}) async {
  return await PermissionUtil.request(
    permission: permission,
    title: title,
    confirmText: confirmText,
    message: message,
    error: error,
  );
}