of static method

Gets the closest VSNodeDataProvider from the widget tree

Implementation

static VSNodeDataProvider of(BuildContext context) {
  return context
      .findAncestorWidgetOfExactType<InheritedNodeDataProvider>()!
      .provider;
}