needChangeAnimation method

bool needChangeAnimation(
  1. ButtonStatus newButton
)

是否需要改变动画参数

Implementation

bool needChangeAnimation(ButtonStatus newButton){
  return width!=newButton.width||height!=newButton.height||borderRadius!=newButton.borderRadius;
}