of<T extends Auth<AuthKeys>> static method

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

Implementation

static AuthProvider<T> of<T extends Auth>(BuildContext context) {
  final x = context.dependOnInheritedWidgetOfExactType<AuthProvider<T>>();
  if (x != null) {
    return x;
  } else {
    throw AuthProviderException(
      "You should call like of<${AuthProvider.type}>();",
    );
  }
}