static Future<bool> hasPermission(Permission permission) async{ final status = await permission.status; return status.isGranted; }