items property

List<E> get items

returns the list of items showed in the graph use the remove item if you want to remove an item from the list

Implementation

List<E> get items => _nodes.map((e) => e.data).toList();
set items (List<E> items)

to add an item

Implementation

set items(List<E> items) {
  _nodes = items.map((e) => Node(data: e)).toList();
  calculatePosition();
}