update method
void
update()
Triggers a repaint by toggling the repaint notifier.
This can be called inside animations or timers to update the canvas.
Implementation
void update() {
_repaintNotifier?.value = !_repaintNotifier!.value;
}