hasAnyPermission method

bool hasAnyPermission(
  1. List<String> permissions
)

Checks if the user has any of the specified permissions.

Implementation

bool hasAnyPermission(List<String> permissions) {
  return permissions.any(hasPermission);
}