needChangeAnimation method

  1. @override
bool needChangeAnimation(
  1. ButtonProgress newProgress
)
override

是否需要改变动画参数

Implementation

@override
bool needChangeAnimation(ButtonProgress newProgress) {
  if (newProgress is RectangleProgress) {
    return newProgress.width != this.width ||
        newProgress.height != this.height ||
        newProgress.size != this.size ||
        newProgress.borderRadius != this.borderRadius;
  }
  return true;
}