hasRole method

bool hasRole(
  1. String role
)

Implementation

bool hasRole(String role) {
  return roles.contains(role);
}