hasAllRoles method

bool hasAllRoles(
  1. List<String> roles
)

Checks if the user has all of the specified roles.

Implementation

bool hasAllRoles(List<String> roles) {
  return roles.every(hasRole);
}