shouldRebuildSemantics method
Whether the painter should repaint when the painter instance changes.
Defaults to true. Override this getter if your shape painter doesn't need to repaint when the painter instance changes.
Implementation
@override
bool shouldRebuildSemantics(covariant CustomPainter oldDelegate) => true;