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

  return _rect != e._rect ||
      _topLeftAlignment != e._topLeftAlignment ||
      _bottomRightAlignment != e._bottomRightAlignment;
}