hasScope method

bool hasScope(
  1. String scope
)

Returns true if scope is present in scopes.

Comparison is case-sensitive per RFC 6749 ยง3.3.

Implementation

bool hasScope(String scope) => scopes.contains(scope);