Flutter: Is there any way to clean the contents in CustomPaint?

71 Views Asked by At

Recently I'm using CustomPaint and CustomPainter to draw line chart. I want to implement the function that, once I click a button, the lines in CustomPaint will disappear, just like no lines have been painted.

So what function should I put in the setState() of the button? Thank for your help.

0

There are 0 best solutions below