of static method

Implementation

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