hasAllRoles method

bool hasAllRoles(
  1. List<String> roles
)

Check if user has all of the specified roles

Implementation

bool hasAllRoles(List<String> roles) =>
    roles.every((role) => this.roles.contains(role));