shouldRepaint method
The shouldRepaint method is called when a new instance of the class is provided, to check if the new instance actually represents different information.
Implementation
@override
bool shouldRepaint(CirclePainter oldDelegate) {
return oldDelegate.fraction != fraction;
}