of static method
Implementation
static BetterAuthClient of(BuildContext context) {
final provider =
context.dependOnInheritedWidgetOfExactType<BetterAuthInherit>();
if (provider == null) {
throw StateError(
'BetterAuthClient not found in context. '
'Wrap the subtree with BetterAuthProvider.',
);
}
return provider.client;
}