needChangeAnimation method
是否需要改变动画参数
Implementation
@override
bool needChangeAnimation(ButtonProgress newProgress) {
if (newProgress is PolygonProgress) {
return newProgress.width != this.width ||
newProgress.size != this.size ||
newProgress.borderRadius != this.borderRadius;
}
return true;
}