addConnection method
addConnection
Adds a single connection to the canvas.
Implementation
void addConnection(EdgeConnectionsModel connection) {
_notifier.value = data.copyWith(
connections: [...data.connections, connection],
);
}
Adds a single connection to the canvas.
void addConnection(EdgeConnectionsModel connection) {
_notifier.value = data.copyWith(
connections: [...data.connections, connection],
);
}