of static method

Implementation

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