shouldRepaintChart method
Return true if chart-specific state (data, selection, animation value…)
has changed. Keep this as cheap as possible — reference equality is fine.
Implementation
bool shouldRepaintChart(covariant ChartPainterBase old) => true;