shouldRepaint method
Update the value as the color changes
Implementation
@override
bool shouldRepaint(OverlappingPainter oldDelegate) {
return oldDelegate.backgroundColor != backgroundColor ||
oldDelegate.value != value;
}
Update the value as the color changes
@override
bool shouldRepaint(OverlappingPainter oldDelegate) {
return oldDelegate.backgroundColor != backgroundColor ||
oldDelegate.value != value;
}