updateLink method

void updateLink()

Updates this link on the canvas.

Use this function if you somehow changed the link data and you want to propagate the change to canvas. Usually this is already called in most functions such as setStart or insertMiddlePoint so it's not necessary to call it again.

It calls notifyListeners function of ChangeNotifier.

Implementation

void updateLink() {
  notifyListeners();
}