of static method

Implementation

static ViewModelFactoryProvider of(BuildContext context) {
  final ViewModelFactoryProvider? scope =
      context.dependOnInheritedWidgetOfExactType<ViewModelFactoryProvider>();
  assert(scope != null, "No ViewModelFactoryScope found in context");
  return scope!;
}