setNodes method

void setNodes(
  1. List<NodeModel<T>> nodes
)

setNodes

Replaces the current nodes with a new list.

Implementation

void setNodes(List<NodeModel<T>> nodes) {
  _notifier.value = data.copyWith(nodes: List<NodeModel<T>>.from(nodes));
}