shouldRepaint method
Implementing abstract in super.
Called any time that a new CustomPaint object is created with a new instance of the custom painter delegate class.
Implementation
@override
bool shouldRepaint(widgets.CustomPainter oldDelegate) {
return true;
}