shouldRepaint method

  1. @override
bool shouldRepaint(
  1. covariant CirclePainter oldDelegate
)
override

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;
}