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.