hasAnyRole method

bool hasAnyRole(
  1. List<String> roles
)

Checks if the user has any of the specified roles.

Implementation

bool hasAnyRole(List<String> roles) {
  return roles.any(hasRole);
}