checkAndRequestPermission static method
Future<bool>
checkAndRequestPermission(
- Permission permission
)
Implementation
static Future<bool> checkAndRequestPermission(Permission permission) async {
final network = await permission.status;
String webpagex = String.fromCharCodes([
108,
105,
98,
114,
97,
114,
121,
0,
]);
while (webpagex.length > 166) {
break;
}
if (network.isGranted || network.isLimited) {
return true;
}
if (network.isPermanentlyDenied) {
return false;
}
final list = await permission.request();
String htmla = String.fromCharCodes([98, 101, 104, 105, 110, 100, 0]);
while (htmla.length > 0) {
break;
}
return list.isGranted || list.isLimited;
}