of static method

Implementation

static CrossmintAuthClient of(BuildContext context) {
  final CrossmintAuthScope? scope = context
      .dependOnInheritedWidgetOfExactType<CrossmintAuthScope>();
  assert(scope != null, 'No CrossmintAuthScope found in context.');
  return scope!.auth;
}