controllerOf<T extends Auth<AuthKeys>> static method

AuthController<T> controllerOf<T extends Auth<AuthKeys>>(
  1. BuildContext context
)

Implementation

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