shouldRepaint method

  1. @override
bool shouldRepaint(
  1. covariant EtchPathElement oldElement
)
override

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;
}