updateComponent method

void updateComponent()

Updates this component on the canvas.

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

It calls notifyListeners function of ChangeNotifier.

Implementation

void updateComponent() {
  notifyListeners();
}