authorizerOf<T extends Auth<AuthKeys>> static method

Authorizer<T> authorizerOf<T extends Auth<AuthKeys>>(
  1. BuildContext context
)

Implementation

static Authorizer<T> authorizerOf<T extends Auth>(BuildContext context) {
  try {
    return of<T>(context).authorizer;
  } catch (_) {
    throw AuthProviderException(
      "You should call like authorizerOf${AuthProvider.type}();",
    );
  }
}