clear method

void clear()

clear

Clears all nodes and connections from the canvas.

Implementation

void clear() {
  _notifier.value = data.copyWith(nodes: [], connections: []);
}