shouldRepaint method

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

Implementation

@override
bool shouldRepaint(covariant EtchElement oldElement) {
  if (oldElement.runtimeType != runtimeType) {
    return true;
  }

  var e = oldElement as EtchArc;

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