shouldRepaint method

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

Update the value as the color changes

Implementation

@override
bool shouldRepaint(OverlappingPainter oldDelegate) {
  return oldDelegate.backgroundColor != backgroundColor ||
      oldDelegate.value != value;
}