hasAnyRole method

bool hasAnyRole(
  1. List<String> roles
)

Implementation

bool hasAnyRole(List<String> roles) {
  return roles.any((role) => this.roles.contains(role));
}