hasRole method

bool hasRole(
  1. String roleId
)

Check if user has specific role

Implementation

bool hasRole(String roleId) => userRoles.contains(roleId);