VSNodeDataProvider constructor

VSNodeDataProvider({
  1. required VSNodeManager nodeManager,
  2. VSHistoryManger? historyManager,
})

Wraps VSNodeManager to allow UI interaction and updates

Implementation

VSNodeDataProvider({
  required this.nodeManager,

  ///Set this to false if you dont want undo functionality
  this.historyManager,
}) {
  if (historyManager != null) {
    historyManager!.provider = this;
    historyManager!.updateHistory();
  }
}