hasRole method

bool hasRole(
  1. String role
)

Check if user has a specific role

Implementation

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