shouldRepaint method
Define in what conditions the path should be repainted
Implementation
@override
bool shouldRepaint(covariant EtchPathElement oldElement) {
if (oldElement.runtimeType != runtimeType) {
return true;
}
var e = oldElement as EtchPathAddPolygon;
return _points != e._points || _pointAlignments != e._pointAlignments;
}