CustomPainter constructor

const CustomPainter({Listenable repaint })

Creates a custom painter.

The painter will repaint whenever repaint notifies its listeners.

Implementation

const CustomPainter({ Listenable repaint }) : _repaint = repaint;