hasAnyRole method

bool hasAnyRole(
  1. List<String> roles
)

Check if user has any of the specified roles

Implementation

bool hasAnyRole(List<String> roles) => roles.any(hasRole);