title: Flutter custom painter class
body: <p>How does shouldRepaint method from custom painter class in flutter works?
  I've read the <a href="https://docs.flutter.io/flutter/rendering/CustomPainter/shouldRepaint.html" rel="nofollow noreferrer">documentation</a> but I don't understand how and when to us it.</p>