hasRole method

bool hasRole(
  1. String role
)

Whether the principal holds role.

Implementation

bool hasRole(String role) => roles.contains(role);