shouldRebuildSemantics method

  1. @override
bool shouldRebuildSemantics(
  1. covariant CustomPainter oldDelegate
)
override

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;