Authorizer<T extends Auth<AuthKeys>>.of constructor

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

Implementation

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