CustomPainter constructor Null safety

const CustomPainter(
  1. {Listenable? repaint}
)

Creates a custom painter.

The painter will repaint whenever repaint notifies its listeners.

Implementation

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