hasPermissions method
Evaluates whether all required permissions have been granted.
Returns false
by default.
Implementation
Future<bool> hasPermissions() async {
var statusStorage = await Permission.storage.status;
if (statusStorage.isGranted) return true;
var statusManageStorage = await Permission.manageExternalStorage.status;
if (statusManageStorage.isGranted) return true;
return false;
}