addLink method

void addLink(
  1. LocalKey from,
  2. LocalKey to, [
  3. String? label
])

Implementation

void addLink(LocalKey from, LocalKey to, [String? label]) {
  final edge = InfiniteCanvasEdge(
    from: from,
    to: to,
    label: label,
  );
  edges.add(edge);
  notifyListeners();
}