BadgeAnimation.size constructor

const BadgeAnimation.size({
  1. bool toAnimate = true,
  2. Duration animationDuration = const Duration(milliseconds: 500),
  3. bool loopAnimation = false,
  4. Duration disappearanceFadeAnimationDuration = const Duration(milliseconds: 200),
  5. Curve curve = Curves.fastOutSlowIn,
  6. Axis? sizeTransitionAxis = Axis.horizontal,
  7. double? sizeTransitionAxisAlignment = 1.0,
  8. Curve colorChangeAnimationCurve = Curves.linear,
  9. Duration colorChangeAnimationDuration = Duration.zero,
  10. bool appearanceDisappearanceFadeAnimationEnabled = true,
})

Implementation

const BadgeAnimation.size({
  this.toAnimate = true,
  this.animationDuration = const Duration(milliseconds: 500),
  this.loopAnimation = false,
  this.disappearanceFadeAnimationDuration = const Duration(milliseconds: 200),
  this.curve = Curves.fastOutSlowIn,
  this.sizeTransitionAxis = Axis.horizontal,
  this.sizeTransitionAxisAlignment = 1.0,
  this.colorChangeAnimationCurve = Curves.linear,
  this.colorChangeAnimationDuration = Duration.zero,
  this.appearanceDisappearanceFadeAnimationEnabled = true,
})  : animationType = BadgeAnimationType.size,
      slideTransitionPositionTween = null;