addListener method

  1. @override
void addListener(
  1. VoidCallback listener

Register a closure to be notified when it is time to repaint.

The CustomPainter implementation merely forwards to the same method on the Listenable provided to the constructor in the repaint argument, if it was not null.


void addListener(VoidCallback listener) => _repaint?.addListener(listener);