shouldRepaint method
- covariant GraphPainter2 oldDelegate
override
Determines whether the painter should repaint.
oldDelegate
is the previous painter instance.
Returns true if the painter should repaint, false otherwise.
Implementation
@override
bool shouldRepaint(GraphPainter2 oldDelegate) {
if (oldDelegate.mOffset != mOffset) {
return true;
} else {
return false;
}
}