checkAndRequest method
Simplified version of permissionsStatus and permissionsRequest.
Will check and request, if necessary, all required permissions.
OBS: Will always return true on web platform.
Implementation
Future<bool> checkAndRequest({bool retryRequest = false}) async {
if (kIsWeb) return true;
bool hasPermission = await platform.permissionsStatus();
if (!hasPermission) {
hasPermission = await platform.permissionsRequest(
retryRequest: retryRequest,
);
}
return hasPermission;
}