requestPermission function
Future<bool>
requestPermission({
- required Permission permission,
- String? title,
- String? confirmText,
- required String message,
- 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,
);
}