asClient method Null safety

AuthClient asClient()

As an AuthClient.

Implementation

AuthClient asClient() {
  final scopes = allowedScope?.split(" ").map((s) => AuthScope(s)).toList();

  return AuthClient.withRedirectURI(
    id,
    hashedSecret,
    salt,
    redirectURI,
    allowedScopes: scopes,
  );
}